diff options
Diffstat (limited to 'libpkgconf/stdinc.h')
-rw-r--r-- | libpkgconf/stdinc.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libpkgconf/stdinc.h b/libpkgconf/stdinc.h index d8efcf5..f75db66 100644 --- a/libpkgconf/stdinc.h +++ b/libpkgconf/stdinc.h @@ -16,7 +16,13 @@ #ifndef __STDINC_H #define __STDINC_H -#define _GNU_SOURCE +// The problem is that g++ defines this macro by default (in contrast to gcc) +// causing the "redefined macro" warning when this header is (implicitly) +// included into the C++ source file (issue #135 is reported). So we move this +// definition into the buildfile, +// +//#define _GNU_SOURCE + #include <ctype.h> #include <stdio.h> #include <stdlib.h> |