Fixed DEPRECATED macro in cases where it is already defined
This commit is contained in:
parent
175d4dd869
commit
8c8ef391f8
1 changed files with 2 additions and 0 deletions
|
|
@ -21,6 +21,7 @@
|
|||
#endif
|
||||
|
||||
// TODO when switching to c++14, use [[deprecated]] instead
|
||||
#ifndef DEPRECATED
|
||||
#ifdef __GNUC__
|
||||
#define DEPRECATED __attribute__((deprecated))
|
||||
#elif defined(_MSC_VER)
|
||||
|
|
@ -28,6 +29,7 @@
|
|||
#else
|
||||
#define DEPRECATED
|
||||
#endif
|
||||
#endif
|
||||
|
||||
namespace SimpleWeb {
|
||||
template <class socket_type>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue