File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 15
15
#include <byteswap.h>
16
16
#endif
17
17
18
- #if defined(__APPLE__ )
18
+ #if defined(MAC_OSX )
19
19
20
20
#if !defined(bswap_16 )
21
21
@@ -61,6 +61,6 @@ inline uint64_t bswap_64(uint64_t x)
61
61
}
62
62
#endif // HAVE_DECL_BSWAP64 == 0
63
63
64
- #endif // defined(__APPLE__ )
64
+ #endif // defined(MAC_OSX )
65
65
66
66
#endif // BITCOIN_COMPAT_BYTESWAP_H
Original file line number Diff line number Diff line change @@ -1021,7 +1021,7 @@ bool FileCommit(FILE *file)
1021
1021
LogPrintf (" %s: fdatasync failed: %d\n " , __func__, errno);
1022
1022
return false ;
1023
1023
}
1024
- #elif defined(__APPLE__ ) && defined(F_FULLFSYNC)
1024
+ #elif defined(MAC_OSX ) && defined(F_FULLFSYNC)
1025
1025
if (fcntl (fileno (file), F_FULLFSYNC, 0 ) == -1 ) { // Manpage says "value other than -1" is returned on success
1026
1026
LogPrintf (" %s: fcntl F_FULLFSYNC failed: %d\n " , __func__, errno);
1027
1027
return false ;
You can’t perform that action at this time.
0 commit comments