From 220947abdb75a06111a48ce1554493bb633bf1a5 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sun, 12 Mar 2023 15:46:48 +0100 Subject: [PATCH] MSVC: fix compiler warnings about redefined pre-processor directives Swapping the order of Qt and Inventor headers fixes them because the latter uses #ifdef/#endif guards --- src/Gui/PreCompiled.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Gui/PreCompiled.h b/src/Gui/PreCompiled.h index f54e96ae5a..2c06bba847 100644 --- a/src/Gui/PreCompiled.h +++ b/src/Gui/PreCompiled.h @@ -96,8 +96,9 @@ #include #include -#include "InventorAll.h" +// Keep this order to avoid compiler warnings #include "QtAll.h" +#include "InventorAll.h" #elif defined(FC_OS_WIN32) #include