Bug 798101 - Do not #undef __STRICT_ANSI__

Remove defines and undefines for Windows, they were needed with
MinGW classic but are not with MinGW-w64.
This commit is contained in:
John Ralls 2021-01-30 17:38:37 -08:00
parent 029f3283e7
commit 12ad4fadae

View File

@ -30,20 +30,9 @@ extern "C"
#include "config.h"
#include <platform.h>
#ifdef __STRICT_ANSI__
#undef __STRICT_ANSI__
#define __STRICT_ANSI_UNSET__ 1
#endif
#ifdef _NO_OLDNAMES
#undef _NO_OLDNAMES
#endif
#ifdef _UWIN
#undef _UWIN
#endif
#if PLATFORM(WINDOWS)
#include <winsock2.h>
#include <windows.h>
#define __STDC_FORMAT_MACROS 1
#endif
#include <inttypes.h>
@ -85,13 +74,6 @@ extern "C"
#include "gnc-dbisqlresult.hpp"
#include "gnc-dbisqlconnection.hpp"
#if PLATFORM(WINDOWS)
#ifdef __STRICT_ANSI_UNSET__
#undef __STRICT_ANSI_UNSET__
#define __STRICT_ANSI__ 1
#endif
#endif
#if LIBDBI_VERSION >= 900
#define HAVE_LIBDBI_R 1
static dbi_inst dbi_instance = nullptr;