Enforce ABI size checks
[libside.git] / include / side / endian.h
index de8ccd716aaea99d1a84ccefbfe732e146da1e39..c89d486c22decba87bf5204287b99b2ee94ed00b 100644 (file)
 #ifndef _SIDE_ENDIAN_H
 #define _SIDE_ENDIAN_H
 
-#include <side/macros.h>
 #include <math.h>
 
+#if defined(__SIZEOF_LONG__)
+# define SIDE_BITS_PER_LONG    (__SIZEOF_LONG__ * 8)
+#elif defined(_LP64)
+# define SIDE_BITS_PER_LONG    64
+#else
+# define SIDE_BITS_PER_LONG    32
+#endif
+
 #if (defined(__linux__) || defined(__CYGWIN__))
 #include <endian.h>
 #include <byteswap.h>
This page took 0.024409 seconds and 4 git commands to generate.