diff options
author | Sven Gothel <[email protected]> | 2013-09-13 18:55:45 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-09-13 18:55:45 +0200 |
commit | 94f6668bb9ce2adfb338ec3d7ac580deeaff622c (patch) | |
tree | ec73aca10c21d6c5c1450b9477de0d5f6d57fbc0 /make/stub_includes/platform | |
parent | a5dacb0b2b6e17f00efe520c1d23bc33ba5d9f78 (diff) |
Complete a5dacb0b2b6e17f00efe520c1d23bc33ba5d9f78: Only patch symbols w/ __GNUC__, aka 'gcc' - _without_ clang !
Diffstat (limited to 'make/stub_includes/platform')
-rw-r--r-- | make/stub_includes/platform/glibc-compat-symbols.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/make/stub_includes/platform/glibc-compat-symbols.h b/make/stub_includes/platform/glibc-compat-symbols.h index 18b2682..5dc1a18 100644 --- a/make/stub_includes/platform/glibc-compat-symbols.h +++ b/make/stub_includes/platform/glibc-compat-symbols.h @@ -15,7 +15,7 @@ * * Check build-in macro definitions via 'gcc -dM -E - < /dev/null' */ -#if defined(__GNUC__) +#if defined(__GNUC__) && !defined(__clang__) #if defined(__arm__) #define GLIBC_COMPAT_SYMBOL(FFF) __asm__(".symver " #FFF "," #FFF "@GLIBC_2.4"); #elif defined(__amd64__) @@ -24,6 +24,7 @@ #define GLIBC_COMPAT_SYMBOL(FFF) __asm__(".symver " #FFF "," #FFF "@GLIBC_2.2.5"); #endif /*__amd64__*/ #else + #warning GLIBC_COMPAT_SYMBOL not supported with current compiler #define GLIBC_COMPAT_SYMBOL(FFF) #endif |