[Scummvm-git-logs] scummvm master -> 147635668b24c2948a774557469f581efa763737
digitall
547637+digitall at users.noreply.github.com
Tue Mar 2 20:52:23 UTC 2021
This automated email contains information about 2 new commits which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
bb27b5f9ec SYMBIAN: fix conflict declaration for TKey struct between Lua and SDK headers.
147635668b SYMBIAN: fix misspelled SYMBIAN_DYNAMIC_PLUGIN
Commit: bb27b5f9ec35532ad99f3e342e515d9e44807094
https://github.com/scummvm/scummvm/commit/bb27b5f9ec35532ad99f3e342e515d9e44807094
Author: Fiodar Stryzhniou (fedor_qd at mail.ru)
Date: 2021-03-02T20:52:19Z
Commit Message:
SYMBIAN: fix conflict declaration for TKey struct between Lua and SDK headers.
Add missed prototypes for math functions.
Changed paths:
backends/platform/symbian/src/portdefs.h
diff --git a/backends/platform/symbian/src/portdefs.h b/backends/platform/symbian/src/portdefs.h
index ea13299f59..86d2a54200 100644
--- a/backends/platform/symbian/src/portdefs.h
+++ b/backends/platform/symbian/src/portdefs.h
@@ -37,7 +37,9 @@
#pragma GCC diagnostic ignored "-Wnarrowing"
#endif
#include <e32def.h>
-#include <e32std.h>
+#if !defined(__IGNORE__E32STD_H__) // TKey type from system header
+#include <e32std.h> // doesn't meets with lua ones.
+#endif
#if (__GNUC__ && __cplusplus)
#pragma GCC diagnostic pop
#pragma GCC diagnostic pop
@@ -86,11 +88,13 @@ namespace std
#undef remove
#endif
-// TODO: Replace this with the keymapper
-#define GUI_ENABLE_KEYSDIALOG
-
#define DISABLE_COMMAND_LINE
#define USE_RGB_COLOR
+#define USE_TINYGL
+
+#ifndef SYMBIAN_DYMANIC_PLUGIN
+#define DETECTION_STATIC
+#endif //DETECTION_STATIC
// hack in some tricks to work around not having these fcns for Symbian
// and we _really_ don't wanna link with any other windows LIBC library!
@@ -168,11 +172,6 @@ namespace std
#define vsnprintf(buf,len,format,valist) symbian_vsnprintf(buf,len,format,valist)
#endif
-extern "C" float roundf (float x); // ultima engine
-extern "C" double nearbyint(double x); // ultima engine
-extern "C" double round(double x); // ultima engine
-extern "C" double fmax (double x, double y);
-
#ifndef signbit
#define signbit(x) \
@@ -181,18 +180,38 @@ extern "C" double fmax (double x, double y);
: __signbitl(x))
#endif
-extern "C" int __signbit(double);
-extern "C" int __signbitf(float);
-extern "C" int __signbitl(long double);
-extern "C" float truncf(float);
-extern "C" float fminf (float x, float y);
-extern "C" float fmaxf (float x, float y);
+// Functions from openlibm not declared in Symbian math.h
+extern "C"{
+ float roundf (float x);
+ double nearbyint(double x);
+ double round(double x);
+ int __signbit(double);
+ int __signbitf(float);
+ int __signbitl(long double);
+ float truncf(float);
+ float fminf(float x, float y);
+ float fmaxf(float x, float y);
+ double fmax (double x, double y);
+}
+
#ifndef __WINS__
+// yuv2rgb functions from theorarm
+extern "C"{
+#ifdef COMMON_INTTYPES_H // That header has own inttypes declaration.
+#define HAVE_INTTYPES_H // So we switch off it to avoid conflict declarations.
+#endif
+#include <theora/yuv2rgb.h>
+
+#ifndef COMMON_INTTYPES_H // No conflict.
+#define COMMON_INTTYPES_H
+#endif
+}
+#define USE_ARM_YUV2RGB_ASM
#define USE_ARM_GFX_ASM
#define USE_ARM_SMUSH_ASM
#define USE_ARM_COSTUME_ASM
-#define USE_ARM_SOUND_ASM
+//#define USE_ARM_SOUND_ASM //it broken now
#endif
// Symbian bsearch implementation is flawed
Commit: 147635668b24c2948a774557469f581efa763737
https://github.com/scummvm/scummvm/commit/147635668b24c2948a774557469f581efa763737
Author: Fiodar (fedor4ever at users.noreply.github.com)
Date: 2021-03-02T20:52:19Z
Commit Message:
SYMBIAN: fix misspelled SYMBIAN_DYNAMIC_PLUGIN
Changed paths:
backends/platform/symbian/src/portdefs.h
diff --git a/backends/platform/symbian/src/portdefs.h b/backends/platform/symbian/src/portdefs.h
index 86d2a54200..411ff3c907 100644
--- a/backends/platform/symbian/src/portdefs.h
+++ b/backends/platform/symbian/src/portdefs.h
@@ -92,7 +92,7 @@ namespace std
#define USE_RGB_COLOR
#define USE_TINYGL
-#ifndef SYMBIAN_DYMANIC_PLUGIN
+#ifndef SYMBIAN_DYNAMIC_PLUGIN
#define DETECTION_STATIC
#endif //DETECTION_STATIC
More information about the Scummvm-git-logs
mailing list