]> mj.ucw.cz Git - libucw.git/commitdiff
_GNU_SOURCE can be already defined by compiler switches, avoid warnings.
authorMartin Mares <mj@ucw.cz>
Tue, 6 Dec 2005 10:47:06 +0000 (10:47 +0000)
committerMartin Mares <mj@ucw.cz>
Tue, 6 Dec 2005 10:47:06 +0000 (10:47 +0000)
lib/lib.h

index ddd03121077fe5e57a969438fb401db794efcef6..a5aef116443cfa2f63d461099fed2275cde7bd4f 100644 (file)
--- 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 */