summaryrefslogtreecommitdiff
path: root/rts/package.conf.in
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2017-04-21 09:16:48 -0400
committerBen Gamari <ben@smart-cactus.org>2017-04-28 22:35:04 -0400
commit945c45ad50ed31e3acb96fdaafb21640c4669f12 (patch)
treeae2e59ba8d3a49bbd3c3dcece39d53aef691ed44 /rts/package.conf.in
parente5b3492f23c2296d0d8221e1787ee585331f726e (diff)
downloadhaskell-945c45ad50ed31e3acb96fdaafb21640c4669f12.tar.gz
Prefer #if defined to #ifdef
Our new CPP linter enforces this.
Diffstat (limited to 'rts/package.conf.in')
-rw-r--r--rts/package.conf.in20
1 files changed, 10 insertions, 10 deletions
diff --git a/rts/package.conf.in b/rts/package.conf.in
index c328c1f75e..2f722f10e7 100644
--- a/rts/package.conf.in
+++ b/rts/package.conf.in
@@ -17,7 +17,7 @@ hidden-modules:
import-dirs:
-#ifdef INSTALLING
+#if defined(INSTALLING)
library-dirs: LIB_DIR"/rts" FFI_LIB_DIR
#else /* !INSTALLING */
library-dirs: TOP"/rts/dist/build" FFI_LIB_DIR
@@ -26,22 +26,22 @@ library-dirs: TOP"/rts/dist/build" FFI_LIB_DIR
hs-libraries: "HSrts" FFI_LIB
extra-libraries:
-#ifdef HAVE_LIBM
+#if defined(HAVE_LIBM)
"m" /* for ldexp() */
#endif
-#ifdef HAVE_LIBRT
+#if defined(HAVE_LIBRT)
, "rt"
#endif
-#ifdef HAVE_LIBDL
+#if defined(HAVE_LIBDL)
, "dl"
#endif
-#ifdef HAVE_LIBFFI
+#if defined(HAVE_LIBFFI)
, "ffi"
#endif
#if HAVE_LIBNUMA
, "numa"
#endif
-#ifdef mingw32_HOST_OS
+#if defined(mingw32_HOST_OS)
,"wsock32" /* for the linker */
,"gdi32" /* for the linker */
,"winmm" /* for the linker */
@@ -52,7 +52,7 @@ extra-libraries:
#if defined(DEBUG) && defined(HAVE_LIBBFD)
,"bfd", "iberty" /* for debugging */
#endif
-#ifdef HAVE_LIBMINGWEX
+#if defined(HAVE_LIBMINGWEX)
# ifndef INSTALLING /* Bundled Mingw is behind */
,"mingwex"
# endif
@@ -62,7 +62,7 @@ extra-libraries:
, "dw" /* for backtraces */
#endif
-#ifdef INSTALLING
+#if defined(INSTALLING)
include-dirs: INCLUDE_DIR FFI_INCLUDE_DIR
#else /* !INSTALLING */
include-dirs: TOP"/rts/dist/build" TOP"/includes" TOP"/includes/dist-derivedconstants/header" FFI_INCLUDE_DIR
@@ -73,7 +73,7 @@ hugs-options:
cc-options:
ld-options:
-#ifdef LEADING_UNDERSCORE
+#if defined(LEADING_UNDERSCORE)
"-Wl,-u,_base_GHCziTopHandler_runIO_closure"
, "-Wl,-u,_base_GHCziTopHandler_runNonIO_closure"
@@ -274,7 +274,7 @@ ld-options:
* path. This is important to use the static gmp in preference on Mac OS.
* The used option is specific to the Darwin linker.
*/
-#ifdef darwin_HOST_OS
+#if defined(darwin_HOST_OS)
, "-Wl,-search_paths_first"
#endif