2014-07-24 04:19:46 +00:00
|
|
|
From: Michael Schröder <mls@suse.com>
|
|
|
|
Date: Tue, 22 Jul 2014 17:09:01 +0100
|
|
|
|
Subject: do not undef bool in swig, it breaks modern perl versions
|
|
|
|
References: https://github.com/swig/swig/commit/4305a3cef9b210541c3b88ab2fd03d787c3bca66
|
|
|
|
Upstream: committed
|
|
|
|
|
|
|
|
Fixes swig compilation errors like:
|
|
|
|
|
|
|
|
[ 778s] /usr/lib/perl5/5.20.0/i586-linux-thread-multi/CORE/handy.h:124:39: error: expected ':' before numeric constant
|
|
|
|
[ 778s] #define cBOOL(cbool) ((cbool) ? (bool)1 : (bool)0)
|
|
|
|
|
|
|
|
[ 778s] core.c: In function '_wrap_svn_diff_open_patch_file':
|
|
|
|
[ 778s] /usr/lib/perl5/5.20.0/i586-linux-thread-multi/CORE/handy.h:124:34: error: 'bool' undeclared (first use in this function)
|
|
|
|
[ 778s] #define cBOOL(cbool) ((cbool) ? (bool)1 : (bool)0)
|
|
|
|
etc.
|
|
|
|
|
2014-07-24 04:18:23 +00:00
|
|
|
--- ./Lib/perl5/noembed.h.orig 2014-07-22 15:04:46.921825843 +0000
|
|
|
|
+++ ./Lib/perl5/noembed.h 2014-07-22 15:04:58.983770532 +0000
|
|
|
|
@@ -61,9 +61,6 @@
|
|
|
|
#ifdef eof
|
|
|
|
#undef eof
|
|
|
|
#endif
|
|
|
|
-#ifdef bool
|
|
|
|
- #undef bool
|
|
|
|
-#endif
|
|
|
|
#ifdef close
|
|
|
|
#undef close
|
|
|
|
#endif
|