From 13892ab4d94a1a23c6a82fccf5df054b9347a564 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 29 Aug 2003 20:29:31 +0000 Subject: Update the config.h.msvc generation. --- gettext-runtime/libasprintf/ChangeLog | 2 ++ gettext-runtime/libasprintf/Makefile.am | 21 +++++++++++---------- 2 files changed, 13 insertions(+), 10 deletions(-) (limited to 'gettext-runtime/libasprintf') diff --git a/gettext-runtime/libasprintf/ChangeLog b/gettext-runtime/libasprintf/ChangeLog index 64b07ca..5fd7695 100644 --- a/gettext-runtime/libasprintf/ChangeLog +++ b/gettext-runtime/libasprintf/ChangeLog @@ -4,6 +4,8 @@ as a function. * vasnprintf.c: Test HAVE_DECL__SNPRINTF instead of HAVE__SNPRINTF. Test HAVE_DECL__SNWPRINTF instead of HAVE__SNWPRINTF. + * Makefile.am (config.h.msvc): Define HAVE_DECL__SNPRINTF instead of + defining snprintf as a macro. 2003-08-24 Bruno Haible diff --git a/gettext-runtime/libasprintf/Makefile.am b/gettext-runtime/libasprintf/Makefile.am index 8919047..8804be6 100644 --- a/gettext-runtime/libasprintf/Makefile.am +++ b/gettext-runtime/libasprintf/Makefile.am @@ -209,16 +209,17 @@ EXTRA_DIST += Makefile.vms config.h_vms # Woe32 support. config.h.msvc: config.h.in - (sed -e 's/#undef HAVE_ALLOCA$$/#define HAVE_ALLOCA 1/' \ - -e 's/#undef HAVE_LONG_DOUBLE$$/#define HAVE_LONG_DOUBLE 1/' \ - -e 's/#undef HAVE_PTRDIFF_T$$/#define HAVE_PTRDIFF_T 1/' \ - -e 's/#undef HAVE_SNPRINTF$$/#define HAVE_SNPRINTF 1/' \ - -e 's/#undef HAVE_STDLIB_H$$/#define HAVE_STDLIB_H 1/' \ - -e 's/#undef HAVE_STRING_H$$/#define HAVE_STRING_H 1/' \ - -e 's/#undef HAVE_WCHAR_T$$/#define HAVE_WCHAR_T 1/' \ - -e 's/#undef HAVE_WCSLEN$$/#define HAVE_WCSLEN 1/' \ - -e 's/#undef HAVE_WINT_T$$/#define HAVE_WINT_T 1/' \ - < $(srcdir)/config.h.in; echo; echo '#define snprintf _snprintf') > $@ + sed -e 's/#undef HAVE_ALLOCA$$/#define HAVE_ALLOCA 1/' \ + -e 's/#undef HAVE_DECL__SNPRINTF$$/#define HAVE_DECL__SNPRINTF 1/' \ + -e 's/#undef HAVE_LONG_DOUBLE$$/#define HAVE_LONG_DOUBLE 1/' \ + -e 's/#undef HAVE_PTRDIFF_T$$/#define HAVE_PTRDIFF_T 1/' \ + -e 's/#undef HAVE_SNPRINTF$$/#define HAVE_SNPRINTF 1/' \ + -e 's/#undef HAVE_STDLIB_H$$/#define HAVE_STDLIB_H 1/' \ + -e 's/#undef HAVE_STRING_H$$/#define HAVE_STRING_H 1/' \ + -e 's/#undef HAVE_WCHAR_T$$/#define HAVE_WCHAR_T 1/' \ + -e 's/#undef HAVE_WCSLEN$$/#define HAVE_WCSLEN 1/' \ + -e 's/#undef HAVE_WINT_T$$/#define HAVE_WINT_T 1/' \ + < $(srcdir)/config.h.in > $@ autosprintf.h.msvc-shared: autosprintf.h.in windows/dllexport.h sed -e 's/extern \([^"]\)/extern LIBASPRINTF_DLL_EXPORTED \1/' \ -- cgit v1.1