patch-src_osgPlugins_osc_osc_OscHostEndianness_h 690 B

12345678910111213141516171819
  1. $OpenBSD: patch-src_osgPlugins_osc_osc_OscHostEndianness_h,v 1.3 2015/09/22 18:49:15 pascal Exp $
  2. --- src/osgPlugins/osc/osc/OscHostEndianness.h.orig Thu Jul 23 13:14:00 2015
  3. +++ src/osgPlugins/osc/osc/OscHostEndianness.h Thu Sep 10 20:45:13 2015
  4. @@ -77,6 +77,14 @@
  5. #else
  6. #error Unknown machine endianness detected.
  7. #endif
  8. + #elif defined(__OpenBSD__)
  9. + #if (_BYTE_ORDER == _LITTLE_ENDIAN)
  10. + #define __LITTLE_ENDIAN__
  11. + #elif (_BYTE_ORDER == _BIG_ENDIAN)
  12. + #define __BIG_ENDIAN__
  13. + #else
  14. + #error Unknown machine endianness detected.
  15. + #endif
  16. #endif
  17. #if defined(__LITTLE_ENDIAN__)