(routines): Add isoc99_wscanf, isoc99_vwscanf,
authordrepper <drepper>
Tue, 18 Sep 2007 19:01:43 +0000 (19:01 +0000)
committerdrepper <drepper>
Tue, 18 Sep 2007 19:01:43 +0000 (19:01 +0000)
isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
(CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
(CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.

wcsmbs/Makefile

index 7a289a8..4afbc4c 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 1995-2000,2002,2003,2004,2005,2006
+# Copyright (C) 1995-2000,2002,2003,2004,2005,2006,2007
 #      Free Software Foundation, Inc.
 # This file is part of the GNU C Library.
 
@@ -38,7 +38,9 @@ routines := wcscat wcschr wcscmp wcscpy wcscspn wcsdup wcslen wcsncat \
            wcwidth wcswidth \
            wcscoll_l wcsxfrm_l \
            wcscasecmp wcsncase wcscasecmp_l wcsncase_l \
-           wcsmbsload mbsrtowcs_l
+           wcsmbsload mbsrtowcs_l \
+           isoc99_wscanf isoc99_vwscanf isoc99_fwscanf isoc99_vfwscanf \
+           isoc99_swscanf isoc99_vswscanf
 
 tests := tst-wcstof wcsmbs-tst1 tst-wcsnlen tst-btowc tst-mbrtowc \
         tst-wcrtomb tst-wcpncpy tst-mbsrtowcs tst-wchar-h tst-mbrtowc2
@@ -65,6 +67,14 @@ CFLAGS-wcstold_l.c = $(strtox-CFLAGS)
 CFLAGS-wcstof_l.c = $(strtox-CFLAGS)
 CFLAGS-tst-wchar-h.c = -D_FORTIFY_SOURCE=2
 
+CFLAGS-isoc99_wscanf.c += $(exceptions)
+CFLAGS-isoc99_fwscanf.c += $(exceptions)
+CFLAGS-isoc99_vwscanf.c += $(exceptions)
+CFLAGS-isoc99_vfwscanf.c += $(exceptions)
+ifneq (,$(filter %REENTRANT, $(defines)))
+CPPFLAGS += -D_IO_MTSAFE_IO
+endif
+
 # We need to find the default version of strtold_l in stdlib.
 CPPFLAGS-wcstold_l.c = -I../stdlib