summaryrefslogtreecommitdiff
path: root/rts/Hpc.c
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/Hpc.c
parente5b3492f23c2296d0d8221e1787ee585331f726e (diff)
downloadhaskell-945c45ad50ed31e3acb96fdaafb21640c4669f12.tar.gz
Prefer #if defined to #ifdef
Our new CPP linter enforces this.
Diffstat (limited to 'rts/Hpc.c')
-rw-r--r--rts/Hpc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/rts/Hpc.c b/rts/Hpc.c
index f2cd2007dc..7575e34ce0 100644
--- a/rts/Hpc.c
+++ b/rts/Hpc.c
@@ -14,15 +14,15 @@
#include <string.h>
#include <assert.h>
-#ifdef HAVE_SYS_TYPES_H
+#if defined(HAVE_SYS_TYPES_H)
#include <sys/types.h>
#endif
-#ifdef HAVE_SYS_STAT_H
+#if defined(HAVE_SYS_STAT_H)
#include <sys/stat.h>
#endif
-#ifdef HAVE_UNISTD_H
+#if defined(HAVE_UNISTD_H)
#include <unistd.h>
#endif
@@ -216,7 +216,7 @@ startupHpc(void)
/* Make sure the directory is present;
* conditional code for mkdir lifted from lndir.c
*/
-#ifdef WIN32
+#if defined(WIN32)
mkdir(hpc_tixdir);
#else
mkdir(hpc_tixdir,0777);