Skip to content

Commit ac1cf8d

Browse files
authored
Trivial: Improve #endif comments
Improve the #endif comments for the '#if HAVE_DECL_BSWAP_XX == 0' preprocessor conditions, so each shows the full condition which it closes.
1 parent 3f726c9 commit ac1cf8d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/compat/byteswap.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ inline uint16_t bswap_16(uint16_t x)
3737
{
3838
return (x >> 8) | ((x & 0x00ff) << 8);
3939
}
40-
#endif // HAVE_DECL_BSWAP16
40+
#endif // HAVE_DECL_BSWAP16 == 0
4141

4242
#if HAVE_DECL_BSWAP_32 == 0
4343
inline uint32_t bswap_32(uint32_t x)
4444
{
4545
return (((x & 0xff000000U) >> 24) | ((x & 0x00ff0000U) >> 8) |
4646
((x & 0x0000ff00U) << 8) | ((x & 0x000000ffU) << 24));
4747
}
48-
#endif // HAVE_DECL_BSWAP32
48+
#endif // HAVE_DECL_BSWAP32 == 0
4949

5050
#if HAVE_DECL_BSWAP_64 == 0
5151
inline uint64_t bswap_64(uint64_t x)
@@ -59,7 +59,7 @@ inline uint64_t bswap_64(uint64_t x)
5959
| ((x & 0x000000000000ff00ull) << 40)
6060
| ((x & 0x00000000000000ffull) << 56));
6161
}
62-
#endif // HAVE_DECL_BSWAP64
62+
#endif // HAVE_DECL_BSWAP64 == 0
6363

6464
#endif // defined(__APPLE__)
6565

0 commit comments

Comments
 (0)