projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix gcc-4.1 x86_64 compability
[urcu.git]
/
urcu
/
uatomic_arch_x86.h
diff --git
a/urcu/uatomic_arch_x86.h
b/urcu/uatomic_arch_x86.h
index dfb58763a37259b88a8962f9bd607767d5c59a3a..39ec407e58c0612458ffc82209e20fc711dec0fd 100644
(file)
--- a/
urcu/uatomic_arch_x86.h
+++ b/
urcu/uatomic_arch_x86.h
@@
-22,6
+22,14
@@
#include <urcu/compiler.h>
#include <urcu/compiler.h>
+#ifndef __SIZEOF_LONG__
+#if defined(__x86_64__) || defined(__amd64__)
+#define __SIZEOF_LONG__ 8
+#else
+#define __SIZEOF_LONG__ 4
+#endif
+#endif
+
#ifndef BITS_PER_LONG
#define BITS_PER_LONG (__SIZEOF_LONG__ * 8)
#endif
#ifndef BITS_PER_LONG
#define BITS_PER_LONG (__SIZEOF_LONG__ * 8)
#endif
This page took
0.02289 seconds
and
4
git commands to generate.