summaryrefslogtreecommitdiffstats
path: root/src/if_perl.xs
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-12-14 11:46:08 +0100
committerBram Moolenaar <Bram@vim.org>2013-12-14 11:46:08 +0100
commit7c0daf088e880e7cd4031c673876a2750323c79c (patch)
treed7fda02d7e9c19d1dfd4405f8017cc2a9233de75 /src/if_perl.xs
parent36c85b2c4639c06fd8e4398f1f7d29f5d4e0405f (diff)
updated for version 7.4.127v7.4.127
Problem: Perl 5.18 on Unix doesn't work. Solution: Move workaround to after including vim.h. (Ken Takata)
Diffstat (limited to 'src/if_perl.xs')
-rw-r--r--src/if_perl.xs14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/if_perl.xs b/src/if_perl.xs
index 650aeb2af8..5a7514798b 100644
--- a/src/if_perl.xs
+++ b/src/if_perl.xs
@@ -24,13 +24,6 @@
# define _USE_32BIT_TIME_T
#endif
-/* Work around for perl-5.18.
- * Don't include "perl\lib\CORE\inline.h" for now,
- * include it after Perl_sv_free2 is defined. */
-#ifdef DYNAMIC_PERL
-# define PERL_NO_INLINE_FUNCTIONS
-#endif
-
/*
* Prevent including winsock.h. perl.h tries to detect whether winsock.h is
* already included before including winsock2.h, because winsock2.h isn't
@@ -44,6 +37,13 @@
#include "vim.h"
+/* Work around for perl-5.18.
+ * Don't include "perl\lib\CORE\inline.h" for now,
+ * include it after Perl_sv_free2 is defined. */
+#ifdef DYNAMIC_PERL
+# define PERL_NO_INLINE_FUNCTIONS
+#endif
+
#include <EXTERN.h>
#include <perl.h>
#include <XSUB.h>