[Scummvm-git-logs] scummvm master -> 040157945e2c6198336cf1b1ed7e5c2a8fbf759b
digitall
noreply at scummvm.org
Mon Feb 20 23:34:22 UTC 2023
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
040157945e HPL1: Fix Usage of Undefined Preprocessor Symbol GCC Compiler Warning
Commit: 040157945e2c6198336cf1b1ed7e5c2a8fbf759b
https://github.com/scummvm/scummvm/commit/040157945e2c6198336cf1b1ed7e5c2a8fbf759b
Author: D G Turner (digitall at scummvm.org)
Date: 2023-02-20T23:33:41Z
Commit Message:
HPL1: Fix Usage of Undefined Preprocessor Symbol GCC Compiler Warning
Changed paths:
engines/hpl1/engine/libraries/angelscript/add-ons/scriptstdstring.cpp
diff --git a/engines/hpl1/engine/libraries/angelscript/add-ons/scriptstdstring.cpp b/engines/hpl1/engine/libraries/angelscript/add-ons/scriptstdstring.cpp
index c21fc2355b8..c3b550fffb7 100644
--- a/engines/hpl1/engine/libraries/angelscript/add-ons/scriptstdstring.cpp
+++ b/engines/hpl1/engine/libraries/angelscript/add-ons/scriptstdstring.cpp
@@ -395,7 +395,7 @@ void RegisterStdString_Native(asIScriptEngine *engine) {
UNUSED_VAR(r);
// Register the string type
-#if AS_CAN_USE_CPP11
+#ifdef AS_CAN_USE_CPP11
// With C++11 it is possible to use asGetTypeTraits to automatically determine the correct flags to use
r = engine->RegisterObjectType("string", sizeof(Common::String), asOBJ_VALUE | asGetTypeTraits<Common::String>());
assert(r >= 0);
More information about the Scummvm-git-logs
mailing list