fix.diff 716 B

12345678910111213141516171819202122232425262728293031
  1. diff --git a/src/swxJson.h b/src/swxJson.h
  2. index 0a32c22..c4cbe64 100644
  3. --- a/src/swxJson.h
  4. +++ b/src/swxJson.h
  5. @@ -17,6 +17,11 @@
  6. #include <queue>
  7. #include "swxJsonUtils.h"
  8. +#ifdef _MSC_VER
  9. +#define strcasecmp _stricmp
  10. +#define strncasecmp _strnicmp
  11. +#endif
  12. +
  13. namespace swxJson {
  14. /*******************************************************************
  15. Exception
  16. diff --git a/src/swxJsonUtils.h b/src/swxJsonUtils.h
  17. index bc32a38..23cfbec 100644
  18. --- a/src/swxJsonUtils.h
  19. +++ b/src/swxJsonUtils.h
  20. @@ -2,7 +2,9 @@
  21. #define SWX_JSON_UTILS_H
  22. #include <exception>
  23. -#include <strings.h>
  24. +#include <cstdint>
  25. +#include <memory.h>
  26. +#define bzero(b,len) (memset((b), '\0', (len)), (void) 0)
  27. namespace swxJson {