mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-07-05 06:46:31 +02:00
IDF release/v4.0 08219f3cf
This commit is contained in:
@ -7,8 +7,8 @@
|
||||
* of use.
|
||||
*/
|
||||
|
||||
#ifndef _LIBCOAP_H_
|
||||
#define _LIBCOAP_H_
|
||||
#ifndef COAP_LIBCOAP_H_
|
||||
#define COAP_LIBCOAP_H_
|
||||
|
||||
/* The non posix embedded platforms like Contiki, TinyOS, RIOT, ... doesn't have
|
||||
* a POSIX compatible header structure so we have to slightly do some platform
|
||||
@ -18,9 +18,41 @@
|
||||
*
|
||||
* The CONTIKI variable is within the Contiki build environment! */
|
||||
|
||||
#if !defined (CONTIKI)
|
||||
#if defined(_WIN32)
|
||||
#pragma comment(lib,"Ws2_32.lib")
|
||||
#include <ws2tcpip.h>
|
||||
typedef SSIZE_T ssize_t;
|
||||
typedef USHORT in_port_t;
|
||||
#elif !defined (CONTIKI)
|
||||
#include <netinet/in.h>
|
||||
#include <sys/socket.h>
|
||||
#endif /* CONTIKI */
|
||||
|
||||
#endif /* _LIBCOAP_H_ */
|
||||
#ifndef COAP_STATIC_INLINE
|
||||
# if defined(__cplusplus)
|
||||
# define COAP_STATIC_INLINE inline
|
||||
# else
|
||||
# if defined(_MSC_VER)
|
||||
# define COAP_STATIC_INLINE static __inline
|
||||
# else
|
||||
# define COAP_STATIC_INLINE static inline
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
#ifndef COAP_DEPRECATED
|
||||
# if defined(__cplusplus)
|
||||
# define COAP_DEPRECATED __attribute__ ((deprecated))
|
||||
# else
|
||||
# if defined(_MSC_VER)
|
||||
# define COAP_DEPRECATED __declspec(deprecated)
|
||||
# else
|
||||
# define COAP_DEPRECATED __attribute__ ((deprecated))
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
void coap_startup(void);
|
||||
|
||||
void coap_cleanup(void);
|
||||
|
||||
#endif /* COAP_LIBCOAP_H_ */
|
||||
|
Reference in New Issue
Block a user