Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions src/if_python.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 2 additions & 11 deletions src/if_ruby.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down