From: Martin Mares Date: Tue, 6 Dec 2005 10:47:06 +0000 (+0000) Subject: _GNU_SOURCE can be already defined by compiler switches, avoid warnings. X-Git-Tag: holmes-import~701 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=c54c4f4c208d980aff98d0ddc5ca2d52c2622132;p=libucw.git _GNU_SOURCE can be already defined by compiler switches, avoid warnings. --- diff --git a/lib/lib.h b/lib/lib.h index ddd03121..a5aef116 100644 --- a/lib/lib.h +++ b/lib/lib.h @@ -16,7 +16,9 @@ /* Tell libc we're going to use all extensions available */ +#ifndef _GNU_SOURCE #define _GNU_SOURCE +#endif /* Ugly structure handling macros */