Move some platform compile fixes into platform.h file
This commit is contained in:
@@ -76,11 +76,6 @@ and globals in favor of more secure versions. */
|
||||
#define inline __inline
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
#define strncasecmp(x, y, z) _strnicmp(x, y, z)
|
||||
#define snprintf _snprintf
|
||||
#endif
|
||||
|
||||
BACNET_STACK_EXPORT
|
||||
extern int bip_get_local_netmask(
|
||||
struct in_addr *netmask);
|
||||
|
||||
@@ -40,8 +40,10 @@
|
||||
# define BACNET_STACK_DEPRECATED(message)
|
||||
# endif
|
||||
|
||||
# if defined(WIN32) || defined(WIN64)
|
||||
# define strcasecmp _stricmp
|
||||
#if defined(WIN32) || defined(WIN64)
|
||||
#define strcasecmp _stricmp
|
||||
#define strncasecmp _strnicmp
|
||||
#define snprintf _snprintf
|
||||
#elif defined(__ZEPHYR__)
|
||||
# include <strings.h>
|
||||
# endif
|
||||
|
||||
Reference in New Issue
Block a user