From 32cd986c6146e67adf8bf396ab40bafc7991ae91 Mon Sep 17 00:00:00 2001 From: Kazuki Sakamoto Date: Wed, 6 Dec 2017 14:12:22 -0800 Subject: [PATCH] if_python/if_ruby header workaround is not needed --- src/if_python.c | 6 +----- src/if_ruby.c | 13 ++----------- 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/src/if_python.c b/src/if_python.c index a5602aa4e8..5a44d69172 100644 --- a/src/if_python.c +++ b/src/if_python.c @@ -64,11 +64,7 @@ #define PY_SSIZE_T_CLEAN -#ifdef FEAT_GUI_MACVIM -# include -#else -# include -#endif +#include #if !defined(PY_VERSION_HEX) || PY_VERSION_HEX < 0x02050000 # undef PY_SSIZE_T_CLEAN diff --git a/src/if_ruby.c b/src/if_ruby.c index 3fac3b21a1..ca31c1a052 100644 --- a/src/if_ruby.c +++ b/src/if_ruby.c @@ -117,18 +117,9 @@ # define rb_gc_writebarrier_unprotect rb_gc_writebarrier_unprotect_stub #endif -#ifdef FEAT_GUI_MACVIM -# include -#else -# include -#endif +#include #ifdef RUBY19_OR_LATER -# ifdef FEAT_GUI_MACVIM -# undef SIZEOF_TIME_T -# include -# else -# include -# endif +# include #endif #undef off_t /* ruby defines off_t as _int64, Mingw uses long */