projects
/
redis.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Contextualize comment.
[redis.git]
/
src
/
config.h
diff --git
a/src/config.h
b/src/config.h
index 323a3ddd1f43b00678aae3a4e87c93b0edc9a117..6a69364a97158a2d7f46b82449046dadb200a9f2 100644
(file)
--- a/
src/config.h
+++ b/
src/config.h
@@
-96,4
+96,12
@@
#error "Undefined or invalid BYTE_ORDER"
#endif
#error "Undefined or invalid BYTE_ORDER"
#endif
+#if (__i386 || __amd64) && __GNUC__
+#define GNUC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
+#if GNUC_VERSION >= 40100
+#define HAVE_ATOMIC
+#endif
+#endif
+
+
#endif
#endif