projects
/
libside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Enforce ABI size checks
[libside.git]
/
include
/
side
/
endian.h
diff --git
a/include/side/endian.h
b/include/side/endian.h
index de8ccd716aaea99d1a84ccefbfe732e146da1e39..c89d486c22decba87bf5204287b99b2ee94ed00b 100644
(file)
--- a/
include/side/endian.h
+++ b/
include/side/endian.h
@@
-29,9
+29,16
@@
#ifndef _SIDE_ENDIAN_H
#define _SIDE_ENDIAN_H
#ifndef _SIDE_ENDIAN_H
#define _SIDE_ENDIAN_H
-#include <side/macros.h>
#include <math.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>
#if (defined(__linux__) || defined(__CYGWIN__))
#include <endian.h>
#include <byteswap.h>
This page took
0.02298 seconds
and
4
git commands to generate.