mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 23:16:14 +01:00
build: Define G_HAVE_GNUC_[VARARGS|VISIBILITY] conditionally
They are not supported by Visual Studio, so only define them in glibconfig.h.in when not on Visual Studio. Fixes builds of GTK+-2.x against Meson/MSVC builds of GLib. https://bugzilla.gnome.org/show_bug.cgi?id=783270
This commit is contained in:
parent
5e55a4e243
commit
4c417c4965
@ -130,11 +130,12 @@ typedef unsigned @glib_intptr_type_define@ guintptr;
|
||||
# undef G_HAVE_ISO_VARARGS
|
||||
#endif
|
||||
|
||||
#define G_HAVE_GNUC_VARARGS 1
|
||||
|
||||
#mesondefine G_HAVE_GROWING_STACK
|
||||
|
||||
#define G_HAVE_GNUC_VISIBILITY 1
|
||||
#ifndef _MSC_VER
|
||||
# define G_HAVE_GNUC_VARARGS 1
|
||||
# define G_HAVE_GNUC_VISIBILITY 1
|
||||
#endif
|
||||
|
||||
#if defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)
|
||||
#define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
|
||||
|
Loading…
Reference in New Issue
Block a user