ICU-22532 Move the definition of _POSIX_C_SOURCE to the Makefile.

This is already set in Makefile.in and therefore results in a macro
redefined warning if also defined in the source file. It seems that
setting this in the Makefile was how it was originally intended do be
done (but then it was just never updated there).
This commit is contained in:
Fredrik Roubert 2024-01-22 13:43:19 +09:00 committed by Fredrik Roubert
parent 5eded36279
commit e81b8727aa
2 changed files with 2 additions and 4 deletions

View file

@ -27,7 +27,8 @@ TDATA = $(PRIMARY_DATA) $(SUPPLEMENTAL_DATA)
TZDIR=zoneinfo
CFLAGS+=-D_POSIX_C_SOURCE
# https://man7.org/linux/man-pages/man2/symlink.2.html
CFLAGS+=-D_POSIX_C_SOURCE=200112L
CPPFLAGS+= -DTZDIR=\"$(TZDIR)\"
# more data

View file

@ -3,9 +3,6 @@
** 2006-07-17 by Arthur David Olson.
*/
/* https://man7.org/linux/man-pages/man2/symlink.2.html */
#define _POSIX_C_SOURCE 200112L
/* Enable extensions and modifications for ICU. */
#define ICU