]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Use <stdarg.h> on Windows.
authorBruno Haible <bruno@clisp.org>
Sun, 24 Aug 2003 17:20:48 +0000 (17:20 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:10:53 +0000 (12:10 +0200)
gettext-runtime/intl/ChangeLog
gettext-runtime/intl/libgnuintl.h.in
gettext-tools/lib/ChangeLog
gettext-tools/lib/error.c

index 6059ae6998fd505f02ca35950637550af209c6e4..e82a1ded7ae532a123881aa7a7803cbcb1eab54c 100644 (file)
@@ -1,3 +1,8 @@
+2003-08-24  Bruno Haible  <bruno@clisp.org>
+
+       * libgnuintl.h.in: Use <stdarg.h> when compiling with MSVC, even though
+       it doesn't define __STDC__ by default.
+
 2003-08-24  Bruno Haible  <bruno@clisp.org>
 
        * relocatable.h: Make this file includable in C++ mode: add extern "C".
index ce06b18be9e390fde93d943cfe68b8a16cb128e3..fdb09f14974713b211bdbf7645140fe87f675596 100644 (file)
@@ -303,7 +303,7 @@ extern char *bind_textdomain_codeset _INTL_PARAMS ((const char *__domainname,
 #include <stddef.h>
 
 /* Get va_list.  */
-#if __STDC__ || defined __cplusplus
+#if __STDC__ || defined __cplusplus || defined _MSC_VER
 # include <stdarg.h>
 #else
 # include <varargs.h>
index 1b095f50fa9f5663ae4818cac204de352484629e..1ccea178693497b921e74fadaa72e398ae782ca2 100644 (file)
@@ -1,3 +1,21 @@
+2003-08-24  Bruno Haible  <bruno@clisp.org>
+
+       * error.c: Use <stdarg.h> when compiling with MSVC, even though it
+       doesn't define __STDC__ by default.
+
+2003-08-24  Bruno Haible  <bruno@clisp.org>
+
+       Support for building DLLs on Windows.
+       * argmatch.h (argmatch_die): Add DLL_VARIABLE attribute.
+       * backupfile.h (simple_backup_suffix): Likewise.
+       * error.h (error_print_progname, error_message_count,
+       error_one_per_line): Likewise.
+       * error-progname.h (error_with_progname): Likewise.
+       * getopt.h (optarg, optind, opterr, optopt): Likewise.
+       * obstack.h (obstack_alloc_failed_handler, obstack_exit_failure):
+       Likewise.
+       * progname.h (program_name): Likewise.
+
 2003-08-24  Bruno Haible  <bruno@clisp.org>
 
        * basename.h: Make this file includable in C++ mode: add extern "C".
index d6b6bdd0e9cacf5410a2afd40934a51ab4a140e4..b201dd26739ca846a0c638aa0689f3a7e5867293 100644 (file)
@@ -36,7 +36,7 @@
 #endif
 
 #if HAVE_VPRINTF || HAVE_DOPRNT || _LIBC
-# if __STDC__
+# if __STDC__ || defined _MSC_VER
 #  include <stdarg.h>
 #  define VA_START(args, lastarg) va_start(args, lastarg)
 # else