mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-21 08:28:53 +02:00
Remove G_GNUC_INTERNAL from here. Check whether the visibility attribute
2004-08-10 Matthias Clasen <mclasen@redhat.com> * glib/gmacros.h: Remove G_GNUC_INTERNAL from here. * configure.in: Check whether the visibility attribute works and define G_HAVE_GNUC_VISIBILITY and G_GNUC_INTERNAL in glibconfig.h correspondingly.
This commit is contained in:
committed by
Matthias Clasen
parent
e02c68bef0
commit
3156c8e9cf
@@ -54,17 +54,6 @@
|
||||
#define G_GNUC_PURE
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Provide G_GNUC_INTERNAL that is used for marking library
|
||||
* functions as being used internally to the lib only, to not
|
||||
* create inefficient PLT entries.
|
||||
*/
|
||||
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96)
|
||||
#define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
|
||||
#else
|
||||
#define G_GNUC_INTERNAL
|
||||
#endif
|
||||
|
||||
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)
|
||||
#define G_GNUC_PRINTF( format_idx, arg_idx ) \
|
||||
__attribute__((__format__ (__printf__, format_idx, arg_idx)))
|
||||
|
Reference in New Issue
Block a user