mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-06-19 14:18:27 +02:00
Add macro DBUS_GNUC_EXTENSION (the same as GLib's G_GNUC_EXTENSION)
Part of a fix for bug 717.
This commit is contained in:
parent
077fb290c5
commit
6b512e4ee7
1 changed files with 12 additions and 0 deletions
|
|
@ -58,6 +58,12 @@
|
|||
# define DBUS_DEPRECATED
|
||||
#endif
|
||||
|
||||
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 8)
|
||||
# define DBUS_GNUC_EXTENSION __extension__
|
||||
#else
|
||||
# define DBUS_GNUC_EXTENSION
|
||||
#endif
|
||||
|
||||
/* Normally docs are in .c files, but there isn't a .c file for this. */
|
||||
/**
|
||||
* @defgroup DBusMacros Utility macros
|
||||
|
|
@ -118,6 +124,12 @@
|
|||
* Please don't use this in your own code, consider it
|
||||
* D-Bus internal.
|
||||
*/
|
||||
/**
|
||||
* @def DBUS_GNUC_EXTENSION
|
||||
*
|
||||
* Tells gcc not to warn about extensions to the C standard in the
|
||||
* following expression, even if compiling with -pedantic.
|
||||
*/
|
||||
|
||||
/** @} */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue