mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-01 23:45:48 +03:00
Merge pull request #364 from mrdeep1/coap_deprecated
Fix COAP_DEPRECATED for Windows C++ builds
This commit is contained in:
1 file changed
+3
-7
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user