diff --git a/src/include/port/win32.h b/src/include/port/win32.h
index 6d99ecbe88d5fecd8d81ab7a8e8c077a4122fac7..5e193223d66e1fa4aaadc4cce49888b1f18269d5 100644
--- a/src/include/port/win32.h
+++ b/src/include/port/win32.h
@@ -9,7 +9,7 @@
  * Leave a higher value in place.
 */
 #if defined(_WIN32_WINNT) && _WIN32_WINNT < 0x0501
-#undefine _WIN32_WINNT
+#undef _WIN32_WINNT
 #endif
 #ifndef _WIN32_WINNT
 #define _WIN32_WINNT 0x0501