Эх сурвалжийг харах

Silent compiler warning regarding undefined macro

Carmelo Amoroso 16 жил өмнө
parent
commit
ccd55d0940
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      include/tls.h

+ 1 - 1
include/tls.h

@@ -5,7 +5,7 @@
 
 #include_next <tls.h>
 
-#if USE_TLS && HAVE___THREAD \
+#if defined USE_TLS && USE_TLS && HAVE___THREAD \
     && (!defined NOT_IN_libc || defined IS_IN_libpthread || defined IS_IN_librt)
 
 # define USE___THREAD 1