/* Library functions for class autosprintf.
- Copyright (C) 2002-2003, 2006, 2018 Free Software Foundation, Inc.
+ Copyright (C) 2002-2003, 2006, 2018-2019 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2002.
This program is free software: you can redistribute it and/or modify
#include "asprintf.c"
/* Define the same functions also without the 'libasprintf_' prefix,
- for binary backward-compatibility. */
+ for binary backward-compatibility.
+ But don't redefine functions already defined by mingw. */
+#if !(defined __MINGW32__ && __USE_MINGW_ANSI_STDIO)
#undef asprintf
#undef vasprintf
#include "vasprintf.c"
#include "asprintf.c"
+#endif
#endif