summaryrefslogtreecommitdiff
path: root/src/compat.h
diff options
context:
space:
mode:
authorStef Walter <stef@thewalter.net>2004-04-25 23:55:49 +0000
committerStef Walter <stef@thewalter.net>2004-04-25 23:55:49 +0000
commite0f1ee22b9aae014c8dcdf1ba98bbdaffb716b0d (patch)
tree1c08888d11ceb7d113f80c6ca12476a1379a5606 /src/compat.h
parentfe65c5925cc12d82a04c2517456848fee06b4bf2 (diff)
Fixes. Updates
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