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:
Matthias Clasen
2004-08-10 18:52:30 +00:00
committed by Matthias Clasen
parent e02c68bef0
commit 3156c8e9cf
7 changed files with 66 additions and 11 deletions

View File

@@ -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)))