]> git.dujemihanovic.xyz Git - u-boot.git/commit
tools/Makefile: Move _GNU_SOURCE to Makefile
authorYork Sun <yorksun@freescale.com>
Tue, 30 Jul 2013 22:26:11 +0000 (15:26 -0700)
committerTom Rini <trini@ti.com>
Fri, 16 Aug 2013 17:45:15 +0000 (13:45 -0400)
commit2db1c3fc673c2ddfa1f8dbb41326d9763ea0ae64
tree2587036449c61a57ba632930dbb9bf632fcf05ea
parent1fd1e2f69fdfb99bac792beed8b208d451acb598
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>
tools/Makefile
tools/aisimage.c
tools/imximage.c
tools/kwbimage.c
tools/mkenvimage.c
tools/omapimage.c
tools/pblimage.c
tools/ublimage.c