]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix for compilation with MSVC.
authorBruno Haible <bruno@clisp.org>
Sun, 24 Aug 2003 17:39:36 +0000 (17:39 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:10:54 +0000 (12:10 +0200)
gettext-tools/lib/ChangeLog
gettext-tools/lib/error.h

index e803762423ea863cb99ae0622fd57c0c9abb7740..2db8f94392c8903ab1bcec9ecf623f4cd33a74f6 100644 (file)
@@ -5,6 +5,8 @@
 
 2003-08-24  Bruno Haible  <bruno@clisp.org>
 
+       * error.h: Use ANSI C "..." declarations when compiling with MSVC, even
+       though it doesn't define __STDC__ by default.
        * error.c: Use <stdarg.h> when compiling with MSVC, even though it
        doesn't define __STDC__ by default.
 
index b504ab288ceee4dc6e1d3bccc14a18108d0843d8..5feacd02020d89d8abc9165a7bd0076adf684419 100644 (file)
@@ -1,5 +1,5 @@
 /* Declaration for error-reporting function
-   Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+   Copyright (C) 1995, 1996, 1997, 2003 Free Software Foundation, Inc.
 
 
    NOTE: The canonical source of this file is maintained with the GNU C Library.
@@ -40,7 +40,7 @@
 extern "C" {
 #endif
 
-#if defined (__STDC__) && __STDC__
+#if (defined (__STDC__) && __STDC__) || defined _MSC_VER
 
 /* Print a message with `fprintf (stderr, FORMAT, ...)';
    if ERRNUM is nonzero, follow it with ": " and strerror (ERRNUM).
@@ -56,20 +56,20 @@ extern void error_at_line (int status, int errnum, const char *fname,
 /* If NULL, error will flush stdout, then print on stderr the program
    name, a colon and a space.  Otherwise, error will call this
    function without parameters instead.  */
-extern void (*error_print_progname) (void);
+extern DLL_VARIABLE void (*error_print_progname) (void);
 
 #else
 void error ();
 void error_at_line ();
-extern void (*error_print_progname) ();
+extern DLL_VARIABLE void (*error_print_progname) ();
 #endif
 
 /* This variable is incremented each time `error' is called.  */
-extern unsigned int error_message_count;
+extern DLL_VARIABLE unsigned int error_message_count;
 
 /* Sometimes we want to have at most one error per line.  This
    variable controls whether this mode is selected or not.  */
-extern int error_one_per_line;
+extern DLL_VARIABLE int error_one_per_line;
 
 #ifdef __cplusplus
 }