Merge pull request #364 from mrdeep1/coap_deprecated

Fix COAP_DEPRECATED for Windows C++ builds
This commit is contained in:
obgm authored and GitHub committed 2019-06-25 11:11:19 +02:00
commit d7eab5f22d
1 file changed
+3 -7
+3 -7
View File
@@ -40,14 +40,10 @@ typedef USHORT in_port_t;
# endif
#endif
#ifndef COAP_DEPRECATED
# if defined(__cplusplus)
# define COAP_DEPRECATED __attribute__ ((deprecated))
# if defined(_MSC_VER)
# define COAP_DEPRECATED __declspec(deprecated)
# else
# if defined(_MSC_VER)
# define COAP_DEPRECATED __declspec(deprecated)
# else
# define COAP_DEPRECATED __attribute__ ((deprecated))
# endif
# define COAP_DEPRECATED __attribute__ ((deprecated))
# endif
#endif