forked from obgm/libcoap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add visual studio 2015 solution and project files for building libcoa…
…p on windows. Merge changes from PR obgm#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. # Conflicts: # examples/client.c # examples/coap-rd.c # examples/coap-server.c # include/coap/address.h # include/coap/coap_io.h # include/coap/net.h # include/coap/prng.h # src/address.c # src/block.c # src/net.c # src/pdu.c # src/platform/posix/coap_io.c # src/resource.c
- Loading branch information
1 parent
2586304
commit 9b1d796
Showing
50 changed files
with
1,982 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
#ifndef _COAP_CONFIG_H_ | ||
#define _COAP_CONFIG_H_ | ||
|
||
#if defined(_WIN32) | ||
|
||
/* Define to 1 if you have <ws2tcpip.h> header file. */ | ||
#define HAVE_WS2TCPIP_H 1 | ||
|
||
/* Define to 1 if you have <winsock2.h> header file. */ | ||
#define HAVE_WINSOCK2_H 1 | ||
|
||
/* Define to 1 if you have the <assert.h> header file. */ | ||
#define HAVE_ASSERT_H 1 | ||
|
||
/* Define to 1 if you have the `getaddrinfo' function. */ | ||
#define HAVE_GETADDRINFO 1 | ||
|
||
/* Define to 1 if you have the <inttypes.h> header file. */ | ||
#define HAVE_INTTYPES_H 1 | ||
|
||
/* Define to 1 if you have the <limits.h> header file. */ | ||
#define HAVE_LIMITS_H 1 | ||
|
||
/* Define to 1 if you have the `malloc' function. */ | ||
#define HAVE_MALLOC 1 | ||
|
||
/* Define to 1 if you have the <memory.h> header file. */ | ||
#define HAVE_MEMORY_H 1 | ||
|
||
/* Define to 1 if you have the `memset' function. */ | ||
#define HAVE_MEMSET 1 | ||
|
||
/* Define to 1 if you have the `select' function. */ | ||
#define HAVE_SELECT 1 | ||
|
||
/* Define to 1 if you have the `socket' function. */ | ||
#define HAVE_SOCKET 1 | ||
|
||
/* Define to 1 if you have the <stdint.h> header file. */ | ||
#define HAVE_STDINT_H 1 | ||
|
||
/* Define to 1 if you have the <stdlib.h> header file. */ | ||
#define HAVE_STDLIB_H 1 | ||
|
||
/* Define to 1 if you have the <string.h> header file. */ | ||
#define HAVE_STRING_H 1 | ||
|
||
/* Define to 1 if you have the `strnlen' function. */ | ||
#define HAVE_STRNLEN 1 | ||
|
||
/* Define to 1 if you have the `strrchr' function. */ | ||
#define HAVE_STRRCHR 1 | ||
|
||
/* Define to 1 if you have the <sys/stat.h> header file. */ | ||
#define HAVE_SYS_STAT_H 1 | ||
|
||
/* Define to 1 if you have the <sys/types.h> header file. */ | ||
#define HAVE_SYS_TYPES_H 1 | ||
|
||
/* Define to 1 if you have the <time.h> header file. */ | ||
#define HAVE_TIME_H 1 | ||
|
||
#if defined(_MSC_VER) && (_MSC_VER < 1900) && !defined(snprintf) | ||
#define snprintf _snprintf | ||
#endif | ||
|
||
/* Define to the address where bug reports for this package should be sent. */ | ||
#define PACKAGE_BUGREPORT "[email protected]" | ||
|
||
/* Define to the full name of this package. */ | ||
#define PACKAGE_NAME "libcoap" | ||
|
||
/* Define to the full name and version of this package. */ | ||
#define PACKAGE_STRING "libcoap 4.1.2" | ||
|
||
/* Define to the one symbol short name of this package. */ | ||
#define PACKAGE_TARNAME "libcoap" | ||
|
||
/* Define to the home page for this package. */ | ||
#define PACKAGE_URL "https://libcoap.net/" | ||
|
||
/* Define to the version of this package. */ | ||
#define PACKAGE_VERSION "4.1.2" | ||
|
||
/* Define to 1 if you have the ANSI C header files. */ | ||
#define STDC_HEADERS 1 | ||
|
||
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most | ||
significant byte first (like Motorola and SPARC, unlike Intel). */ | ||
#if defined AC_APPLE_UNIVERSAL_BUILD | ||
# if defined __BIG_ENDIAN__ | ||
# define WORDS_BIGENDIAN 1 | ||
# endif | ||
#else | ||
# ifndef WORDS_BIGENDIAN | ||
/* # undef WORDS_BIGENDIAN */ | ||
# endif | ||
#endif | ||
|
||
/* Define this to 1 for ancillary data on MacOS */ | ||
/* #undef __APPLE_USE_RFC_3542 */ | ||
|
||
/* Define to `unsigned int' if <sys/types.h> does not define. */ | ||
/* #undef size_t */ | ||
|
||
/* Define to `int' if <sys/types.h> does not define. */ | ||
/* #undef ssize_t */ | ||
|
||
#endif | ||
|
||
#endif /* _COAP_CONFIG_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.