diff options
author | John Ericson <git@JohnEricson.me> | 2019-07-10 11:54:47 -0400 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-07-14 01:21:48 -0400 |
commit | d7c6c4717cdf1b7bd8550e37da66c52275c802f0 (patch) | |
tree | 7488a774c7b8e288b4373bcdc9121b53ba1492ea /rts/posix | |
parent | bd9fc1b2adea718be089b8370d2e82ea55af6539 (diff) | |
download | haskell-d7c6c4717cdf1b7bd8550e37da66c52275c802f0.tar.gz |
Expunge #ifdef and #ifndef from the codebase
These are unexploded minds as far as the linter is concerned. I don't
want to hit in my MRs by mistake!
I did this with `sed`, and then rolled back some changes in the docs,
config.guess, and the linter itself.
Diffstat (limited to 'rts/posix')
-rw-r--r-- | rts/posix/OSMem.c | 6 | ||||
-rw-r--r-- | rts/posix/Select.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/rts/posix/OSMem.c b/rts/posix/OSMem.c index cf4b705d74..dc8c4122f7 100644 --- a/rts/posix/OSMem.c +++ b/rts/posix/OSMem.c @@ -49,17 +49,17 @@ #include <sys/sysctl.h> #endif -#ifndef MAP_FAILED +#if !defined(MAP_FAILED) # define MAP_FAILED ((void *)-1) #endif #if defined(hpux_HOST_OS) -# ifndef MAP_ANON +# if !defined(MAP_ANON) # define MAP_ANON MAP_ANONYMOUS # endif #endif -#ifndef darwin_HOST_OS +#if !defined(darwin_HOST_OS) # undef RESERVE_FLAGS # if defined(MAP_GUARD) # define RESERVE_FLAGS MAP_GUARD /* FreeBSD */ diff --git a/rts/posix/Select.c b/rts/posix/Select.c index 211d47dbec..5b143e1bf7 100644 --- a/rts/posix/Select.c +++ b/rts/posix/Select.c @@ -23,11 +23,11 @@ #include "Stats.h" #include "GetTime.h" -# ifdef HAVE_SYS_SELECT_H +# if defined(HAVE_SYS_SELECT_H) # include <sys/select.h> # endif -# ifdef HAVE_SYS_TYPES_H +# if defined(HAVE_SYS_TYPES_H) # include <sys/types.h> # endif |