Improve accuracy of HAVE_ATOMIC dependency check
[I had to split out the clang check due to clang *really* not liking the __GLIBC_PREREQ macro; -matt] Closes #1456
This commit is contained in:
parent
8ffbd4e074
commit
f6f5f2443a
@ -187,9 +187,14 @@ void setproctitle(const char *fmt, ...);
|
|||||||
|
|
||||||
#if (__i386 || __amd64 || __powerpc__) && __GNUC__
|
#if (__i386 || __amd64 || __powerpc__) && __GNUC__
|
||||||
#define GNUC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
|
#define GNUC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
|
||||||
#if (GNUC_VERSION >= 40100) || defined(__clang__)
|
#if defined(__clang__)
|
||||||
#define HAVE_ATOMIC
|
#define HAVE_ATOMIC
|
||||||
#endif
|
#endif
|
||||||
|
#if (defined(__GLIBC__) && defined(__GLIBC_PREREQ))
|
||||||
|
#if (GNUC_VERSION >= 40100 && __GLIBC_PREREQ(2, 6))
|
||||||
|
#define HAVE_ATOMIC
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user