From 12ad4fadae007b23df8cd0b6eb09c16c75b0e202 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Sat, 30 Jan 2021 17:38:37 -0800 Subject: [PATCH] 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. --- libgnucash/backend/dbi/gnc-backend-dbi.cpp | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/libgnucash/backend/dbi/gnc-backend-dbi.cpp b/libgnucash/backend/dbi/gnc-backend-dbi.cpp index 25699e5ca8..fdb7a3357c 100644 --- a/libgnucash/backend/dbi/gnc-backend-dbi.cpp +++ b/libgnucash/backend/dbi/gnc-backend-dbi.cpp @@ -30,20 +30,9 @@ extern "C" #include "config.h" #include -#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 #include -#define __STDC_FORMAT_MACROS 1 #endif #include @@ -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;