Removing _GNU_SOURCE macro definition from stdinc.h #135

Closed
opened 2017-09-13 14:45:52 +00:00 by karen-arutyunov · 1 comment
karen-arutyunov commented 2017-09-13 14:45:52 +00:00 (Migrated from github.com)

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.

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.

actually, the macro is not required at all, and i have no idea how it got there, so i removed it.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ariadne/pkgconf#135
There is no content yet.