23#ifdef DBUS_INSIDE_DBUS_H
24#error "You can't include dbus-macros-internal.h in the public header dbus.h"
27#ifndef DBUS_MACROS_INTERNAL_H
28#define DBUS_MACROS_INTERNAL_H
30#include <dbus/dbus-macros.h>
33# define DBUS_BEGIN_IGNORE_DEPRECATIONS \
34 _Pragma("clang diagnostic push") \
35 _Pragma("clang diagnostic ignored \"-Wdeprecated-declarations\"")
36# define DBUS_END_IGNORE_DEPRECATIONS \
37 _Pragma("clang diagnostic pop")
38#elif __GNUC__ >= 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)
39# define DBUS_BEGIN_IGNORE_DEPRECATIONS \
40 _Pragma("GCC diagnostic push") \
41 _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
42# define DBUS_END_IGNORE_DEPRECATIONS \
43 _Pragma("GCC diagnostic pop")
45# define DBUS_BEGIN_IGNORE_DEPRECATIONS
46# define DBUS_END_IGNORE_DEPRECATIONS
49#ifdef DBUS_ENABLE_INTRUSIVE_TESTS
50# define DBUS_INTRUSIVE_TESTS_EXPORT DBUS_PRIVATE_EXPORT
52# define DBUS_INTRUSIVE_TESTS_EXPORT
54#define DBUS_EMBEDDED_TESTS_EXPORT DBUS_INTRUSIVE_TESTS_EXPORT
56#if defined(DBUS_PRIVATE_EXPORT)
59# if defined(DBUS_STATIC_BUILD)
60# define DBUS_PRIVATE_EXPORT
61# elif defined(dbus_1_EXPORTS)
62# define DBUS_PRIVATE_EXPORT __declspec(dllexport)
64# define DBUS_PRIVATE_EXPORT __declspec(dllimport)
66#elif defined(__GNUC__) && __GNUC__ >= 4
67# define DBUS_PRIVATE_EXPORT __attribute__ ((__visibility__ ("default")))
69# define DBUS_PRIVATE_EXPORT