diff options
author | Ben Gamari <ben@smart-cactus.org> | 2019-10-24 19:20:21 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2019-10-25 08:57:34 -0400 |
commit | 03e05c9c6f951a5753bb3f3d8511e4fef304c506 (patch) | |
tree | afa9bba80a3e7fae76dc6037c8c09871a93b9402 /rts/linker/util.h | |
parent | 92f8a64b6892d5c59e87bf1c787fe3196149e1d5 (diff) | |
download | haskell-wip/armv7-ci.tar.gz |
rts: Fix ARM linker includeswip/armv7-ci
* Prefer #pragma once over guard macros
* Drop redundant #includes
* Fix order to ensure that necessary macros are defined when we
condition on them
Diffstat (limited to 'rts/linker/util.h')
-rw-r--r-- | rts/linker/util.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/rts/linker/util.h b/rts/linker/util.h index 77f06978ab..6f08729075 100644 --- a/rts/linker/util.h +++ b/rts/linker/util.h @@ -1,5 +1,4 @@ -#if !defined(RTS_LINKER_UTIL_H) -#define RTS_LINKER_UTIL_H +#pragma once #include <stdint.h> #include <stdbool.h> @@ -26,5 +25,3 @@ isInt64(uint32_t bits, int64_t x) { return bits > 64 || (-((int64_t)1 << (bits-1)) <= x && x < ((int64_t)1 << (bits-1))); } - -#endif //RTS_LINKER_UTIL_H |