projects
/
platform
/
upstream
/
openblas.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5991d1a
)
Rewrite glibc version check
author
Martin Kroeker
<martin@ruby.chemie.uni-freiburg.de>
Sun, 26 Aug 2018 09:18:02 +0000
(11:18 +0200)
committer
GitHub
<noreply@github.com>
Sun, 26 Aug 2018 09:18:02 +0000
(11:18 +0200)
driver/others/memory.c
patch
|
blob
|
history
diff --git
a/driver/others/memory.c
b/driver/others/memory.c
index
7688937
..
b2e154e
100644
(file)
--- a/
driver/others/memory.c
+++ b/
driver/others/memory.c
@@
-73,8
+73,17
@@
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "common.h"
-#if defined(USE_TLS) && ( !defined(__GLIBC_PREREQ) || (defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2,20)))
-#warning "using tls version of memory.c"
+#if defined(USE_TLS)
+#define COMPILE_TLS
+#if defined(__GLIBC_PREREQ)
+#if !__GLIBC_PREREQ(2,20))
+#undef COMPILE_TLS
+#endif
+#endif
+#endif
+
+#if defined(COMPILE_TLS)
+
#include <errno.h>
#if defined(OS_WINDOWS) && !defined(OS_CYGWIN_NT)