+2009-08-09 Bruno Haible <bruno@clisp.org>
+
+ Fix a compilation error on non-glibc systems that have gcc visibility
+ support but deficient *printf functions.
+ * printf.c (DLL_EXPORTED): Define to non-empty also when
+ HAVE_VISIBILITY is true.
+ Reported at <https://savannah.gnu.org/bugs/?27185>.
+
2009-06-06 Bruno Haible <bruno@clisp.org>
Interoperate with automake-1.11 provided --enable-silent-rules option.
/* Formatted output to strings, using POSIX/XSI format strings with positions.
- Copyright (C) 2003, 2006-2007 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2006-2007, 2009 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2003.
This program is free software; you can redistribute it and/or modify it
/* When building a DLL, we must export some functions. Note that because
the functions are only defined for binary backward compatibility, we
don't need to use __declspec(dllimport) in any case. */
-#if defined _MSC_VER && BUILDING_DLL
+#if HAVE_VISIBILITY && BUILDING_DLL
+# define DLL_EXPORTED __attribute__((__visibility__("default")))
+#elif defined _MSC_VER && BUILDING_DLL
# define DLL_EXPORTED __declspec(dllexport)
#else
# define DLL_EXPORTED