We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f028d6 commit 986431eCopy full SHA for 986431e
src/utils/os_byteswap.cpp
@@ -80,7 +80,7 @@ auto bswap_64(uint64_t bsx) noexcept -> uint64_t {
80
};
81
82
83
-#elif __APPLE__
+#elif defined(__APPLE__)
84
85
// Mac OS X / Darwin features
86
#include <cstdint> // uint16_t, uint32_t, uint64_t
@@ -99,7 +99,7 @@ constexpr auto bswap_64(uint64_t bsx) noexcept -> uint64_t {
99
100
101
102
-#elif __FreeBSD__
+#elif defined(__FreeBSD__)
103
104
105
#include <sys/endian.h>
@@ -117,7 +117,7 @@ constexpr auto bswap_64(uint64_t bsx) noexcept -> uint64_t {
117
118
119
120
-#elif __NetBSD__
+#elif defined(__NetBSD__)
121
122
123
#include <sys/types.h>
0 commit comments