dumm: Undefine _GNU_SOURCE before including <ruby.h>, as it usually redefines it

This commit is contained in:
Martin Willi
2014-07-09 10:53:36 +02:00
parent af494268fb
commit 9128666812
+2
View File
@@ -32,6 +32,8 @@
#undef PACKAGE_URL
/* avoid redefintiion of snprintf etc. */
#define RUBY_DONT_SUBST
/* undef our _GNU_SOURCE, as it gets redefined by <ruby.h> */
#undef _GNU_SOURCE
#include <ruby.h>
static dumm_t *dumm;