'#undef seed' macro which Perl API headers define

This macro breaks '#include <algorithm>', causing generated Perl
bindings to fail to compile with 'g++ -std=gnu++11'.
This commit is contained in:
Olly Betts 2015-05-02 00:06:58 +12:00
parent 50ba1ea6fa
commit 0fad8a3728
1 changed files with 3 additions and 0 deletions

View File

@ -103,6 +103,9 @@
#ifdef stat
#undef stat
#endif
#ifdef seed
#undef seed
#endif
#ifdef bool
/* Leave if macro is from C99 stdbool.h */