Added bacnet_strnlen and bacnet_stricmp to avoid libc compiler problems (#857)

* Added bacnet_strnlen and bacnet_stricmp to avoid libc compiler problems

* FIxed compiler warnings in printf conversions.
This commit is contained in:
Steve Karg
2024-11-21 06:43:37 -06:00
committed by GitHub
parent c71b2e3a66
commit 1375347ab6
7 changed files with 64 additions and 63 deletions
+2 -6
View File
@@ -21,6 +21,7 @@
#include "bacnet/bacdef.h"
/* BACnet Stack API */
#include "bacnet/bactext.h"
#include "bacnet/bacstr.h"
#include "bacnet/bacerror.h"
#include "bacnet/iam.h"
#include "bacnet/arf.h"
@@ -36,11 +37,6 @@
#include "bacnet/datalink/datalink.h"
#include "bacnet/datalink/dlenv.h"
#if defined(__BORLANDC__)
#define _kbhit kbhit
#define _stricmp stricmp
#endif
#define MY_MAX_STR 32
#define MY_MAX_BLOCK 8
@@ -215,7 +211,7 @@ int main(int argc, char *argv[])
return 0;
}
/* decode the command line parameters */
if (_stricmp(argv[1], "server") == 0) {
if (bacnet_stricmp(argv[1], "server") == 0) {
Target_Mode = 1;
} else {
Target_Mode = 0;