mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Use the standard OpenBSD preprocessor definition
This commit is contained in:
committed by
David Goulet
parent
0f79fb51e5
commit
27df23abb6
+2
-2
@@ -53,7 +53,7 @@
|
||||
#else
|
||||
|
||||
/* See: http://sourceforge.net/p/predef/wiki/Endianness/ */
|
||||
# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
|
||||
# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(OpenBSD)
|
||||
# include <sys/endian.h>
|
||||
# else
|
||||
# include <endian.h>
|
||||
@@ -62,7 +62,7 @@
|
||||
__BYTE_ORDER == __LITTLE_ENDIAN
|
||||
# define _le64toh(x) ((uint64_t)(x))
|
||||
# else
|
||||
# if defined(__OpenBSD__)
|
||||
# if defined(OpenBSD)
|
||||
# define _le64toh(x) letoh64(x)
|
||||
# else
|
||||
# define _le64toh(x) le64toh(x)
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
# define IS_LITTLE_ENDIAN
|
||||
# endif
|
||||
#else
|
||||
# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
|
||||
# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(OpenBSD)
|
||||
# include <sys/endian.h>
|
||||
# else
|
||||
# include <endian.h>
|
||||
|
||||
Reference in New Issue
Block a user