Hi!
These are FreeBSD bits for src/osgPlugins/osc/osc/OscHostEndianness.h,
required to build newever OSG on this OS. Also corrects file name
in the error message - I was confused not to find OSCHostEndianness.h
after I've got this error.
Tested by successfully building OSG 3.2.0 with this patch on FreeBSD
9.1.
--
Dmitry Marakasov . 55B5 0596 FF1E 8D84 5F56 9510 D35A 80DD F9D2 F77D
[email protected] ..: jabber: [email protected] http://www.amdmi3.ru
Index: src/osgPlugins/osc/osc/OscHostEndianness.h
===================================================================
--- src/osgPlugins/osc/osc/OscHostEndianness.h (revision 13802)
+++ src/osgPlugins/osc/osc/OscHostEndianness.h (working copy)
@@ -60,6 +60,15 @@
#else
#error Unknown machine endianness detected.
#endif
+ #elif defined(__FreeBSD__)
+ #include <sys/endian.h>
+ #if (_BYTE_ORDER == _LITTLE_ENDIAN)
+ #define __LITTLE_ENDIAN__
+ #elif (_BYTE_ORDER == _BIG_ENDIAN)
+ #define __BIG_ENDIAN__
+ #else
+ #error Unknown machine endianness detected.
+ #endif
#endif
#if defined(__LITTLE_ENDIAN__)
@@ -74,7 +83,7 @@
#else
- #error please edit OSCHostEndianness.h to configure endianness
+ #error please edit OscHostEndianness.h to configure endianness
#endif
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org