1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 00:32:04 +02:00

tools/Makefile: Move _GNU_SOURCE to Makefile

Commit 669dfc2e adds libfdt_env.h to HOSTCPPFLAGS. It causes stdio.h
to be included before _GNU_SOURCE is defined in C files. On some old hosts
some prototypes are protected by #ifdef __USE_GNU, which is set when
_GNU_SOURCE is defined.

Signed-off-by: York Sun <yorksun@freescale.com>
Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
York Sun
2013-07-30 15:26:11 -07:00
committed by Tom Rini
parent 1fd1e2f69f
commit 2db1c3fc67
8 changed files with 3 additions and 21 deletions

View File

@@ -14,9 +14,6 @@
* SPDX-License-Identifier: GPL-2.0+
*/
/* Required to obtain the getline prototype from stdio.h */
#define _GNU_SOURCE
#include "mkimage.h"
#include <image.h>
#include "omapimage.h"