We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f756e0 commit 8bcb200Copy full SHA for 8bcb200
Common++/header/DeprecationUtils.h
@@ -3,14 +3,7 @@
3
/// @file
4
5
#ifndef PCPP_DEPRECATED
6
-# if defined(__GNUC__) || defined(__clang__)
7
-# define PCPP_DEPRECATED(msg) __attribute__((deprecated(msg)))
8
-# elif defined(_MSC_VER)
9
-# define PCPP_DEPRECATED(msg) __declspec(deprecated(msg))
10
-# else
11
-# pragma message("WARNING: DEPRECATED feature is not implemented for this compiler")
12
-# define PCPP_DEPRECATED(msg)
13
-# endif
+# define PCPP_DEPRECATED(msg) [[deprecated(msg)]]
14
#endif
15
16
#if !defined(DISABLE_WARNING_PUSH) || !defined(DISABLE_WARNING_POP)
0 commit comments