Skip to content

Commit c03b36f

Browse files
committed
Add ghc-api-version.h
1 parent 9238816 commit c03b36f

File tree

4 files changed

+22
-0
lines changed

4 files changed

+22
-0
lines changed

plugins/hls-explicit-imports-plugin/hls-explicit-imports-plugin.cabal

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ library
2525
, unordered-containers
2626

2727
default-language: Haskell2010
28+
include-dirs: include
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#ifndef GHC_API_VERSION_H
2+
#define GHC_API_VERSION_H
3+
4+
#ifdef GHC_LIB
5+
#define MIN_GHC_API_VERSION(x,y,z) MIN_VERSION_ghc_lib(x,y,z)
6+
#else
7+
#define MIN_GHC_API_VERSION(x,y,z) MIN_VERSION_ghc(x,y,z)
8+
#endif
9+
10+
#endif

plugins/hls-retrie-plugin/hls-retrie-plugin.cabal

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@ library
3232
, unordered-containers
3333

3434
default-language: Haskell2010
35+
include-dirs: include
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#ifndef GHC_API_VERSION_H
2+
#define GHC_API_VERSION_H
3+
4+
#ifdef GHC_LIB
5+
#define MIN_GHC_API_VERSION(x,y,z) MIN_VERSION_ghc_lib(x,y,z)
6+
#else
7+
#define MIN_GHC_API_VERSION(x,y,z) MIN_VERSION_ghc(x,y,z)
8+
#endif
9+
10+
#endif

0 commit comments

Comments
 (0)