diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-09-13 18:00:45 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-09-14 02:19:05 +0300 |
commit | f297400327eb6d2b66087f21f549cade62a990e2 (patch) | |
tree | 046d8adf5e5991db6bb7b03f6396cb1e09d1b7cf /libpkgconf/stdinc.h | |
parent | 06bcbc7a504a41612e766b7c791cd8a788b24cfa (diff) |
Add some C++ related fixes
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> |