summaryrefslogtreecommitdiffstats
path: root/src/if_ruby.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/if_ruby.c')
-rw-r--r--src/if_ruby.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/if_ruby.c b/src/if_ruby.c
index dd0f5db443..a921205255 100644
--- a/src/if_ruby.c
+++ b/src/if_ruby.c
@@ -174,7 +174,13 @@
#include "version.h"
#ifdef DYNAMIC_RUBY
-# if !defined(MSWIN) // must come after including vim.h, where it is defined
+# ifdef MSWIN // must come after including vim.h, where it is defined
+# define RUBY_PROC FARPROC
+# define load_dll vimLoadLib
+# define symbol_from_dll GetProcAddress
+# define close_dll FreeLibrary
+# define load_dll_error GetWin32Error
+# else
# include <dlfcn.h>
# define HINSTANCE void*
# define RUBY_PROC void*
@@ -182,12 +188,6 @@
# define symbol_from_dll dlsym
# define close_dll dlclose
# define load_dll_error dlerror
-# else
-# define RUBY_PROC FARPROC
-# define load_dll vimLoadLib
-# define symbol_from_dll GetProcAddress
-# define close_dll FreeLibrary
-# define load_dll_error GetWin32Error
# endif
#endif