Skip to content

Commit 986431e

Browse files
committed
fix pre-processor logic
1 parent 9f028d6 commit 986431e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/utils/os_byteswap.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ auto bswap_64(uint64_t bsx) noexcept -> uint64_t {
8080
};
8181

8282

83-
#elif __APPLE__
83+
#elif defined(__APPLE__)
8484

8585
// Mac OS X / Darwin features
8686
#include <cstdint> // uint16_t, uint32_t, uint64_t
@@ -99,7 +99,7 @@ constexpr auto bswap_64(uint64_t bsx) noexcept -> uint64_t {
9999
};
100100

101101

102-
#elif __FreeBSD__
102+
#elif defined(__FreeBSD__)
103103

104104
#include <cstdint> // uint16_t, uint32_t, uint64_t
105105
#include <sys/endian.h>
@@ -117,7 +117,7 @@ constexpr auto bswap_64(uint64_t bsx) noexcept -> uint64_t {
117117
};
118118

119119

120-
#elif __NetBSD__
120+
#elif defined(__NetBSD__)
121121

122122
#include <cstdint> // uint16_t, uint32_t, uint64_t
123123
#include <sys/types.h>

0 commit comments

Comments
 (0)