summaryrefslogtreecommitdiff
path: root/src/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/compat.h')
-rw-r--r--src/compat.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/compat.h b/src/compat.h
index a73637f..c2b4128 100644
--- a/src/compat.h
+++ b/src/compat.h
@@ -213,7 +213,6 @@ void* reallocf(void* p, size_t sz);
#endif
#endif
-
/*
* Depending on the OS we use different width characters
* for file names and file access. Before enabling wide
@@ -223,6 +222,11 @@ void* reallocf(void* p, size_t sz);
*/
#ifdef _WIN32
+
+ #ifdef SIZEOF_WHCHAR_T != 2
+ #error Incompatible size of wchar_t
+ #endif
+
/* On windows we use UCS2 */
typedef wchar_t fchar_t;
#define FC_WIDE 1