diff options
author | Bruno Haible <bruno@clisp.org> | 2003-08-29 20:29:31 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-06-23 12:10:56 +0200 |
commit | 13892ab4d94a1a23c6a82fccf5df054b9347a564 (patch) | |
tree | 1b1165ae2084e2833e8a2ceae31310f2088a7e57 /gettext-runtime/libasprintf | |
parent | 4b33f6f57ec956b05172a251e7a4c1da510b5542 (diff) | |
download | external_gettext-13892ab4d94a1a23c6a82fccf5df054b9347a564.zip external_gettext-13892ab4d94a1a23c6a82fccf5df054b9347a564.tar.gz external_gettext-13892ab4d94a1a23c6a82fccf5df054b9347a564.tar.bz2 |
Update the config.h.msvc generation.
Diffstat (limited to 'gettext-runtime/libasprintf')
-rw-r--r-- | gettext-runtime/libasprintf/ChangeLog | 2 | ||||
-rw-r--r-- | gettext-runtime/libasprintf/Makefile.am | 21 |
2 files changed, 13 insertions, 10 deletions
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 <bruno@clisp.org> 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/' \ |