Move some platform compile fixes into platform.h file

This commit is contained in:
Steve Karg
2024-02-08 14:54:17 -06:00
parent 46d686a8ab
commit 851d10bc02
2 changed files with 4 additions and 7 deletions
-5
View File
@@ -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);
+4 -2
View File
@@ -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