util: skip AltiVec detection if built with -maltivec
[mesa.git] / src / util / u_string.h
index 361dcb41e2bec42abee2c36138a8aca439830306..cd21f9d1af1b0dbffece986054a444498502978f 100644 (file)
@@ -50,7 +50,7 @@
 extern "C" {
 #endif
 
-#ifndef _GNU_SOURCE
+#if !defined(_GNU_SOURCE) || defined(__APPLE__)
 
 #define strchrnul util_strchrnul
 static inline char *