]> git.ozlabs.org Git - ccan/blobdiff - ccan/str/debug.c
opt: add allocator setting.
[ccan] / ccan / str / debug.c
index 004a874f7c82778d93ff389d3b542ba0eb5ed9a6..8c519442d792a77c1339a8de2fc403920b074b12 100644 (file)
@@ -1,3 +1,4 @@
+/* CC0 (Public domain) - see LICENSE file for details */
 #include "config.h"
 #include <ccan/str/str_debug.h>
 #include <assert.h>
@@ -24,11 +25,13 @@ int str_isascii(int i)
        return isascii(i);
 }
 
+#if HAVE_ISBLANK
 int str_isblank(int i)
 {
        assert(i >= -1 && i < 256);
        return isblank(i);
 }
+#endif
 
 int str_iscntrl(int i)
 {
@@ -84,6 +87,9 @@ int str_isxdigit(int i)
        return isxdigit(i);
 }
 
+#undef strstr
+#undef strchr
+#undef strrchr
 
 char *str_strstr(const char *haystack, const char *needle)
 {