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.
/* 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.
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).
/* 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
}