Isolate ReactOS Unicode function colliding with their new GCC-internal matches.
[captive.git] / src / libcaptive / include / reactos / compat.h
index 520d116..53ec6f0 100644 (file)
 #undef strstr
 #endif
 
-/* int iswdigit(wint_t wc); should be safe */
-/* int iswlower(wint_t wc); should be safe */
-/* int iswxdigit(wint_t wc); should be safe */
+#ifdef REACTOS_COMPAT
+#undef iswdigit
+#define iswdigit captive_reactos_iswdigit
+#else
+#undef iswdigit
+#endif
+
+#ifdef REACTOS_COMPAT
+#undef iswlower
+#define iswlower captive_reactos_iswlower
+#else
+#undef iswlower
+#endif
+
+#ifdef REACTOS_COMPAT
+#undef iswxdigit
+#define iswxdigit captive_reactos_iswxdigit
+#else
+#undef iswxdigit
+#endif
+
+#ifdef REACTOS_COMPAT
+#undef towlower
+#define towlower captive_reactos_towlower
+#else
+#undef towlower
+#endif
+
+#ifdef REACTOS_COMPAT
+#undef towupper
+#define towupper captive_reactos_towupper
+#else
+#undef towupper
+#endif
 
 /* Place BEFORE "internal/debug.h" include as there is
  *     internal/debug.h->internal/ntoskrnl.h->ddk/ntddk.h->REACTOS_UCS2()