mirror of
https://github.com/obgm/libcoap.git
synced 2026-12-05 20:02:19 +03:00
Add visual studio 2015 solution and project files for building libcoap on windows.
Merge changes from PR #47 related to windows platform support. Add full windows platform support including correct error checking and working regression tests and examples. Remove need to build applications using libcoap with -DWITH_POSIX and to include coap_config.h. This applies to the examples as well.
This commit is contained in:
1 parent
771f013b6e
commit
9b647d5d05
50 files changed
+2025
-257
No files matched your search
+3
-2
@@ -17,6 +17,7 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "libcoap.h"
|
||||
#include "option.h"
|
||||
#include "encode.h" /* for coap_fls() */
|
||||
#include "debug.h"
|
||||
@@ -143,7 +144,7 @@ coap_option_iterator_init(coap_pdu_t *pdu, coap_opt_iterator_t *oi,
|
||||
return oi;
|
||||
}
|
||||
|
||||
static inline int
|
||||
COAP_STATIC_INLINE int
|
||||
opt_finished(coap_opt_iterator_t *oi) {
|
||||
assert(oi);
|
||||
|
||||
@@ -420,7 +421,7 @@ typedef struct {
|
||||
} opt_filter;
|
||||
|
||||
/** Returns true iff @p type denotes an option type larger than 255. */
|
||||
static inline int
|
||||
COAP_STATIC_INLINE int
|
||||
is_long_option(unsigned short type) { return type > 255; }
|
||||
|
||||
/** Operation specifiers for coap_filter_op(). */
|
||||
|
||||
Reference in new issue
Block a user