Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1695)

Unified Diff: Source/wtf/StringExtras.h

Issue 22118002: Move all the HAVE() macros related to string manipulations to wtf/StringExtras.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@timeb
Patch Set: Address review comments Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/wtf/Platform.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/StringExtras.h
diff --git a/Source/wtf/StringExtras.h b/Source/wtf/StringExtras.h
index 4166f0f146564af1c2d0b9b13b27d8b0c39d1020..b465df588fba37952ec9192ae7e7641cf85ebb7e 100644
--- a/Source/wtf/StringExtras.h
+++ b/Source/wtf/StringExtras.h
@@ -26,6 +26,16 @@
#ifndef WTF_StringExtras_h
#define WTF_StringExtras_h
+#if OS(UNIX)
+#define HAVE_STRINGS_H 1
+#endif
+
+#if !defined(HAVE_STRNSTR)
+#if OS(DARWIN) || (OS(FREEBSD) && !defined(__GLIBC__))
+#define HAVE_STRNSTR 1
+#endif
+#endif
+
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
« no previous file with comments | « Source/wtf/Platform.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698