aboutsummaryrefslogtreecommitdiffstats
path: root/ext/dl/dl.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dl/dl.h')
-rw-r--r--ext/dl/dl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dl/dl.h b/ext/dl/dl.h
index 2fa330f925..2b3b1f827e 100644
--- a/ext/dl/dl.h
+++ b/ext/dl/dl.h
@@ -20,7 +20,7 @@
#define RTLD_NOW 0
#endif
#else
-# if defined(HAVE_WINDOWS_H)
+# if defined(_WIN32)
# include <windows.h>
# define dlopen(name,flag) ((void*)LoadLibrary(name))
# define dlerror() strerror(rb_w32_map_errno(GetLastError()))