Skip to content

Commit 32cd986

Browse files
committed
if_python/if_ruby header workaround is not needed
1 parent e855c2e commit 32cd986

2 files changed

Lines changed: 3 additions & 16 deletions

File tree

src/if_python.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,7 @@
6464

6565
#define PY_SSIZE_T_CLEAN
6666

67-
#ifdef FEAT_GUI_MACVIM
68-
# include <Python/Python.h>
69-
#else
70-
# include <Python.h>
71-
#endif
67+
#include <Python.h>
7268

7369
#if !defined(PY_VERSION_HEX) || PY_VERSION_HEX < 0x02050000
7470
# undef PY_SSIZE_T_CLEAN

src/if_ruby.c

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -117,18 +117,9 @@
117117
# define rb_gc_writebarrier_unprotect rb_gc_writebarrier_unprotect_stub
118118
#endif
119119

120-
#ifdef FEAT_GUI_MACVIM
121-
# include <Ruby/ruby.h>
122-
#else
123-
# include <ruby.h>
124-
#endif
120+
#include <ruby.h>
125121
#ifdef RUBY19_OR_LATER
126-
# ifdef FEAT_GUI_MACVIM
127-
# undef SIZEOF_TIME_T
128-
# include <Ruby/ruby/encoding.h>
129-
# else
130-
# include <ruby/encoding.h>
131-
# endif
122+
# include <ruby/encoding.h>
132123
#endif
133124

134125
#undef off_t /* ruby defines off_t as _int64, Mingw uses long */

0 commit comments

Comments
 (0)