diff --git a/src/if_perl.xs b/src/if_perl.xs
index 636e704c3435d0527b2a44d363a052aae50c0f3b..a3dc4fe5b5c83d325a3aae77a7ed00b2f5312ec2 100644
--- a/src/if_perl.xs
+++ b/src/if_perl.xs
@@ -89,7 +89,7 @@ EXTERN_C void boot_DynaLoader __ARGS((pTHX_ CV*));
 #if defined(DYNAMIC_PERL) || defined(PROTO)
 
 #ifndef DYNAMIC_PERL /* just generating prototypes */
-#ifdef _MSWIN
+#ifdef WIN3264
 typedef int HANDLE;
 #endif
 typedef int XSINIT_t;
@@ -97,7 +97,7 @@ typedef int XSUBADDR_t;
 typedef int perl_key;
 #endif
 
-#ifndef _MSWIN
+#ifndef WIN3264
 #include <dlfcn.h>
 #define HANDLE void*
 #define PERL_PROC void*