Commits

justin  committed 5e352ab

add solaris endianness check

  • Participants
  • Parent commits 1233b84

Comments (0)

Files changed (1)

File c_src/brg_endian.h

  Issue 20/10/2006
 */
 
+/* modified by justin@basho.com to include Solaris endianness test */
+
 #ifndef BRG_ENDIAN_H
 #define BRG_ENDIAN_H
 
 #elif defined( BSD ) && ( BSD >= 199103 ) || defined( __APPLE__ ) || \
       defined( __CYGWIN32__ ) || defined( __DJGPP__ ) || defined( __osf__ )
 #  include <machine/endian.h>
+#elif defined (__SVR4) && defined (__sun)
+#  ifdef __sparc__
+#    define BYTE_ORDER IS_BIG_ENDIAN
+#  else
+#    define BYTE_ORDER IS_LITTLE_ENDIAN
+#  endif
 #elif defined( __linux__ ) || defined( __GNUC__ ) || defined( __GNU_LIBRARY__ )
 #  if !defined( __MINGW32__ ) && !defined(AVR)
 #    include <endian.h>