mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-23 18:52:09 +01:00
Merge branch 'backport-1187-msvc-arm32-glib-2-64' into 'glib-2-64'
Backport !1187 “Define G_MSVC_SYMBOL_PREFIX correctly for ARM32” to glib-2-64 See merge request GNOME/glib!1656
This commit is contained in:
commit
629bf398a2
@ -42,13 +42,13 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* We need to account for differences between the mangling of symbols
|
/* We need to account for differences between the mangling of symbols
|
||||||
* for Win32 (x86) and x64 programs, as symbols on Win32 are prefixed
|
* for x86 and x64/ARM/ARM64 programs, as symbols on x86 are prefixed
|
||||||
* with an underscore but symbols on x64 are not.
|
* with an underscore but symbols on x64/ARM/ARM64 are not.
|
||||||
*/
|
*/
|
||||||
#ifdef _WIN64
|
#ifdef _M_IX86
|
||||||
#define G_MSVC_SYMBOL_PREFIX ""
|
|
||||||
#else
|
|
||||||
#define G_MSVC_SYMBOL_PREFIX "_"
|
#define G_MSVC_SYMBOL_PREFIX "_"
|
||||||
|
#else
|
||||||
|
#define G_MSVC_SYMBOL_PREFIX ""
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define G_DEFINE_CONSTRUCTOR(_func) G_MSVC_CTOR (_func, G_MSVC_SYMBOL_PREFIX)
|
#define G_DEFINE_CONSTRUCTOR(_func) G_MSVC_CTOR (_func, G_MSVC_SYMBOL_PREFIX)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user