diff --git a/mongoose.c b/mongoose.c
index dce08570ad56454a7adb4c2b5d368bb1f22d5a33..10359084cdc477e61b015df995eb3686e01c26b0 100644
--- a/mongoose.c
+++ b/mongoose.c
@@ -15,6 +15,7 @@
 // Alternatively, you can license this library under a commercial
 // license, as set out in <http://cesanta.com/products.html>.
 
+#undef UNICODE                  // Use ANSI WinAPI functions
 #undef _UNICODE                 // Use multibyte encoding on Windows
 #define _MBCS                   // Use multibyte encoding on Windows
 #define _INTEGRAL_MAX_BITS 64   // Enable _stati64() on Windows