summaryrefslogtreecommitdiff
path: root/rts/StgStdThunks.cmm
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/StgStdThunks.cmm
parente5b3492f23c2296d0d8221e1787ee585331f726e (diff)
downloadhaskell-945c45ad50ed31e3acb96fdaafb21640c4669f12.tar.gz
Prefer #if defined to #ifdef
Our new CPP linter enforces this.
Diffstat (limited to 'rts/StgStdThunks.cmm')
-rw-r--r--rts/StgStdThunks.cmm4
1 files changed, 2 insertions, 2 deletions
diff --git a/rts/StgStdThunks.cmm b/rts/StgStdThunks.cmm
index 208c8d6ada..204cd1a04e 100644
--- a/rts/StgStdThunks.cmm
+++ b/rts/StgStdThunks.cmm
@@ -27,7 +27,7 @@
matching.
-------------------------------------------------------------------------- */
-#ifdef PROFILING
+#if defined(PROFILING)
#define SAVE_CCS W_ saved_ccs; saved_ccs = CCCS;
#define RESTORE_CCS CCCS = saved_ccs;
#else
@@ -48,7 +48,7 @@
* so we untag it before accessing the field.
*
*/
-#ifdef PROFILING
+#if defined(PROFILING)
/* When profiling, we cannot shortcut by checking the tag,
* because LDV profiling relies on entering closures to mark them as
* "used".