Do not define _GNU_SOURCE is already defined

This commit is contained in:
Lode Hoste 2013-03-14 21:34:11 +01:00
parent 9c6cb42f17
commit 1edff47af3
4 changed files with 11 additions and 0 deletions

View File

@ -5,7 +5,10 @@
* it under the terms of the MIT license. See LICENSE for details.
*/
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View File

@ -5,7 +5,10 @@
* it under the terms of the MIT license. See LICENSE for details.
*/
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <errno.h>
#include <limits.h>
#include <stdio.h>

View File

@ -5,7 +5,10 @@
* it under the terms of the MIT license. See LICENSE for details.
*/
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <stdlib.h>
#include <string.h>
#include "jansson_private.h"

View File

@ -5,7 +5,9 @@
* it under the terms of the MIT license. See LICENSE for details.
*/
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <stddef.h>
#include <stdlib.h>