Mercurial > vim
changeset 2624:bfd69bfb4149 v7.3.046
updated for version 7.3.046
Problem: Can't build Ruby on MS-Windows.
Solution: Add #ifdef, don't use WIN3264 before including vim.h.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 27 Oct 2010 17:40:59 +0200 |
parents | bc3f88ca060d |
children | 0aa21d63aba0 |
files | src/if_ruby.c src/version.c |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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*