summaryrefslogtreecommitdiff
path: root/src/if_ruby.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/if_ruby.c')
-rw-r--r--src/if_ruby.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/if_ruby.c b/src/if_ruby.c
index 0e95e17b7..397b77284 100644
--- a/src/if_ruby.c
+++ b/src/if_ruby.c
@@ -14,7 +14,9 @@
#include <stdio.h>
#include <string.h>
-#include "auto/config.h"
+#ifdef HAVE_CONFIG_H
+# include "auto/config.h"
+#endif
#ifdef _WIN32
# if !defined(DYNAMIC_RUBY_VER) || (DYNAMIC_RUBY_VER < 18)
@@ -50,7 +52,7 @@
# define RUBY_EXPORT
# endif
-#ifndef WIN3264
+#if !(defined(WIN32) || defined(_WIN64))
# include <dlfcn.h>
# define HINSTANCE void*
# define RUBY_PROC void*