if_python/if_ruby header workaround is not needed

This commit is contained in:
Kazuki Sakamoto
2017-12-06 14:12:22 -08:00
parent e855c2e8d5
commit 32cd986c61
2 changed files with 3 additions and 16 deletions
+1 -5
View File
@@ -64,11 +64,7 @@
#define PY_SSIZE_T_CLEAN
#ifdef FEAT_GUI_MACVIM
# include <Python/Python.h>
#else
# include <Python.h>
#endif
#include <Python.h>
#if !defined(PY_VERSION_HEX) || PY_VERSION_HEX < 0x02050000
# undef PY_SSIZE_T_CLEAN
+2 -11
View File
@@ -117,18 +117,9 @@
# define rb_gc_writebarrier_unprotect rb_gc_writebarrier_unprotect_stub
#endif
#ifdef FEAT_GUI_MACVIM
# include <Ruby/ruby.h>
#else
# include <ruby.h>
#endif
#include <ruby.h>
#ifdef RUBY19_OR_LATER
# ifdef FEAT_GUI_MACVIM
# undef SIZEOF_TIME_T
# include <Ruby/ruby/encoding.h>
# else
# include <ruby/encoding.h>
# endif
# include <ruby/encoding.h>
#endif
#undef off_t /* ruby defines off_t as _int64, Mingw uses long */