[Mesa-dev] [PATCH mesa 04/13] util: use standard name for strstr()

Eric Engestrom eric.engestrom at intel.com
Tue Nov 20 13:11:04 UTC 2018


Signed-off-by: Eric Engestrom <eric.engestrom at intel.com>
---
 src/util/u_string.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/util/u_string.h b/src/util/u_string.h
index d74ce1db8537bda54e48..94080e540d66b9fd8381 100644
--- a/src/util/u_string.h
+++ b/src/util/u_string.h
@@ -185,6 +185,7 @@ util_strncmp(const char *s1, const char *s2, size_t n)
    return 0;
 }
 
+#define strstr util_strstr
 static inline char *
 util_strstr(const char *haystack, const char *needle)
 {
@@ -214,7 +215,6 @@ util_strstr(const char *haystack, const char *needle)
 #define util_strcmp strcmp
 #define util_strncmp strncmp
 #define util_strncat strncat
-#define util_strstr strstr
 
 #endif
 
-- 
Cheers,
  Eric



More information about the mesa-dev mailing list