Commit 81bfe4db authored by François Grisez's avatar François Grisez
Browse files

Fix crash due to libintl on Windows with Visual Studio

parent 224b2994
......@@ -353,6 +353,18 @@ MS2_PUBLIC char *ms_load_path_content(const char *path, size_t *nbytes);
#endif
# if defined(ENABLE_NLS)
#ifdef _MSC_VER
// prevent libintl.h from re-defining fprintf and vfprintf
#ifndef fprintf
#define fprintf fprintf
#endif
#ifndef vfprintf
#define vfprintf vfprintf
#endif
#define _GL_STDIO_H
#endif
# include <libintl.h>
# define _(String) dgettext (GETTEXT_PACKAGE, String)
# else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment