Define _GNU_SOURCE only if not defined.

This commit is contained in:
Andreas Schneider 2008-06-09 17:19:12 +02:00
parent bac6f7d7b6
commit 914f0e5628
3 changed files with 10 additions and 2 deletions

View file

@ -20,7 +20,9 @@
* vim: ts=2 sw=2 et cindent
*/
#define _GNU_SOURCE /* asprintf */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <errno.h>
#include <fnmatch.h>

View file

@ -20,7 +20,10 @@
* vim: ts=2 sw=2 et cindent
*/
#define _GNU_SOURCE /* asprintf */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <sqlite3.h>
#include <stdio.h>
#include <unistd.h>

View file

@ -20,7 +20,10 @@
* vim: ts=2 sw=2 et cindent
*/
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <sys/types.h>
#include <sys/stat.h>