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
|
#define inline __inline
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _WIN32
|
|
||||||
#define strncasecmp(x, y, z) _strnicmp(x, y, z)
|
|
||||||
#define snprintf _snprintf
|
|
||||||
#endif
|
|
||||||
|
|
||||||
BACNET_STACK_EXPORT
|
BACNET_STACK_EXPORT
|
||||||
extern int bip_get_local_netmask(
|
extern int bip_get_local_netmask(
|
||||||
struct in_addr *netmask);
|
struct in_addr *netmask);
|
||||||
|
|||||||
@@ -40,8 +40,10 @@
|
|||||||
# define BACNET_STACK_DEPRECATED(message)
|
# define BACNET_STACK_DEPRECATED(message)
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# if defined(WIN32) || defined(WIN64)
|
#if defined(WIN32) || defined(WIN64)
|
||||||
# define strcasecmp _stricmp
|
#define strcasecmp _stricmp
|
||||||
|
#define strncasecmp _strnicmp
|
||||||
|
#define snprintf _snprintf
|
||||||
#elif defined(__ZEPHYR__)
|
#elif defined(__ZEPHYR__)
|
||||||
# include <strings.h>
|
# include <strings.h>
|
||||||
# endif
|
# endif
|
||||||
|
|||||||
Reference in New Issue
Block a user