aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/fallback.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/fallback.h')
-rw-r--r--src/fallback.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/fallback.h b/src/fallback.h
index b28e7b17..a3143f09 100644
--- a/src/fallback.h
+++ b/src/fallback.h
@@ -62,13 +62,20 @@ char *tparm_solaris_kludge(char *str, ...);
/// these functions only exist on 10.7+.
///
/// On other platforms, use what's detected at build time.
-#if __APPLE__ && __DARWIN_C_LEVEL >= 200809L
+#if __APPLE__
+#if __DARWIN_C_LEVEL >= 200809L
wchar_t *wcsdup_use_weak(const wchar_t *);
int wcscasecmp_use_weak(const wchar_t *, const wchar_t *);
int wcsncasecmp_use_weak(const wchar_t *s1, const wchar_t *s2, size_t n);
#define wcsdup(a) wcsdup_use_weak((a))
#define wcscasecmp(a, b) wcscasecmp_use_weak((a), (b))
#define wcsncasecmp(a, b, c) wcsncasecmp_use_weak((a), (b), (c))
+#else
+wchar_t *wcsdup(const wchar_t *in);
+int wcscasecmp(const wchar_t *a, const wchar_t *b);
+int wcsncasecmp(const wchar_t *s1, const wchar_t *s2, size_t n);
+wchar_t *wcsndup(const wchar_t *in, size_t c);
+#endif
#endif //__APPLE__
#ifndef HAVE_WCSNDUP