changeset 2459:98a04e75f15e

endianness in openbsd
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 04 Jan 2018 17:04:29 +0100
parents 99e9482b4afc
children 292bd85d4532
files Core/Endianness.h
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Core/Endianness.h	Thu Jan 04 12:56:19 2018 +0100
+++ b/Core/Endianness.h	Thu Jan 04 17:04:29 2018 +0100
@@ -101,6 +101,16 @@
 
 
 /********************************************************************
+ ** OPENBSD ARCHITECTURES
+ ********************************************************************/
+
+#if defined(__OpenBSD__)
+#  define ORTHANC_HAS_BUILTIN_BYTE_SWAP 1
+#  include <endian.h>
+#endif
+
+
+/********************************************************************
  ** APPLE ARCHITECTURES (including OS X)
  ********************************************************************/