1
0
forked from mirrors/0ad

Restore includes for suppressing warnings on vs2017

Commit d888b10931 remove those headers which have the side effect of
suppressing some warnings on Windows using vs2017. Keep those headers
around for till vs2019+.

Add additional suppressions where needed for spidermonkey headers.

Ref: #8086
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
Ralph Sennhauser
2025-07-02 07:57:48 +02:00
parent 61326cfca6
commit 8227e76845
4 changed files with 18 additions and 0 deletions
+8
View File
@@ -21,7 +21,15 @@
#include "lib/code_annotation.h"
#include "ps/CStr.h"
#if MSC_VERSION
# pragma warning(push, 1)
# pragma warning(disable: 4068)
# pragma warning(disable: 4100)
#endif
#include <js/TypeDecls.h>
#if MSC_VERSION
# pragma warning(pop)
#endif
#include <utility>
class IGUIObject;
+1
View File
@@ -31,6 +31,7 @@
#include "ps/Profiler2.h"
#include "scriptinterface/Object.h"
#include "scriptinterface/ScriptExceptions.h"
#include "scriptinterface/ScriptExtraHeaders.h"
#include "scriptinterface/ScriptRequest.h"
#include "soundmanager/ISoundManager.h"
+1
View File
@@ -33,6 +33,7 @@
#include "lib/input.h"
#include "maths/Rect.h"
#include "ps/CStr.h"
#include "scriptinterface/ScriptTypes.h"
#include <js/RootingAPI.h>
#include <js/TypeDecls.h>
+8
View File
@@ -21,7 +21,15 @@
#include "lib/types.h"
#include <cstddef>
#if MSC_VERSION
# pragma warning(push, 1)
# pragma warning(disable: 4068)
# pragma warning(disable: 4100)
#endif
#include <js/TypeDecls.h>
#if MSC_VERSION
# pragma warning(pop)
#endif
#include <libxml/parser.h>
#include <memory>
#include <string>