From f297400327eb6d2b66087f21f549cade62a990e2 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 13 Sep 2017 18:00:45 +0300 Subject: Add some C++ related fixes --- libpkgconf/stdinc.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'libpkgconf/stdinc.h') 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 #include #include -- cgit v1.1