3#ifndef DUNE_DEPRECATED_HH
4#define DUNE_DEPRECATED_HH
13#if defined(DOXYGEN) || !defined(HAS_ATTRIBUTE_DEPRECATED)
20#define DUNE_DEPRECATED
22#define DUNE_DEPRECATED __attribute__((deprecated))
25#if defined(DOXYGEN) || !defined(HAS_ATTRIBUTE_DEPRECATED_MSG)
32#define DUNE_DEPRECATED_MSG(text) DUNE_DEPRECATED
34#define DUNE_DEPRECATED_MSG(text) __attribute__((deprecated(# text)))
55#define DUNE_NO_DEPRECATED_BEGIN ...
61#define DUNE_NO_DEPRECATED_END ...
64# define DUNE_NO_DEPRECATED_BEGIN \
65 _Pragma("clang diagnostic push") \
66 _Pragma("clang diagnostic ignored \"-Wdeprecated-declarations\"")
67# define DUNE_NO_DEPRECATED_END _Pragma("clang diagnostic pop")
68# elif defined __INTEL_COMPILER
69# define DUNE_NO_DEPRECATED_BEGIN \
70 _Pragma("warning push") \
71 _Pragma("warning(disable:1478)") \
72 _Pragma("warning(disable:1786)")
73# define DUNE_NO_DEPRECATED_END _Pragma("warning pop")
74# elif defined __GNUC__
75# define DUNE_NO_DEPRECATED_BEGIN \
76 _Pragma("GCC diagnostic push") \
77 _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
78# define DUNE_NO_DEPRECATED_END _Pragma("GCC diagnostic pop")
80# define DUNE_NO_DEPRECATED_BEGIN
81# define DUNE_NO_DEPRECATED_END