mirror of
https://github.com/haskell/ghcide.git
synced 2024-12-15 13:03:40 +03:00
2c24f2be15
Previously we had a mix of GHC_STABLE and checks on __GLASGOW_HASKELL__. This PR changes this to always check on MIN_GHC_API_VERSION. Depending on whether you use ghc-lib or not (now controlled by a cabal flag), this macro expands to MIN_VERSION_ghc or MIN_VERSION_ghc_lib.
11 lines
209 B
C
11 lines
209 B
C
#ifndef GHC_API_VERSION_H
|
|
#define GHC_API_VERSION_H
|
|
|
|
#ifdef GHC_LIB
|
|
#define MIN_GHC_API_VERSION(x,y,z) MIN_VERSION_ghc_lib(x,y,z)
|
|
#else
|
|
#define MIN_GHC_API_VERSION(x,y,z) MIN_VERSION_ghc(x,y,z)
|
|
#endif
|
|
|
|
#endif
|