Removing _GNU_SOURCE macro definition from stdinc.h #135
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Could you remove _GNU_SOURCE from stdinc.h, which is implicitly get defined in the library client code when libpkgconf.h is included?
One of the problems is that if this macro is already defined in the client code (for example g++ defines it by default in contrast to gcc), then the "redefined macro" warning is issued.
This macro is only required for the library source code compilation, so can safely be moved to source files that require it.
actually, the macro is not required at all, and i have no idea how it got there, so i removed it.