]> granicus.if.org Git - json-c/commitdiff
If inttypes.h is present, use it, even on Windows.
authorEric Haszlakiewicz <erh+git@nimenees.com>
Sun, 13 Jun 2021 21:12:22 +0000 (21:12 +0000)
committerEric Haszlakiewicz <erh+git@nimenees.com>
Sun, 13 Jun 2021 21:12:22 +0000 (21:12 +0000)
CMakeLists.txt

index e870cca1e8a2ee67bf5f9e72fd866426ecf3b26b..01d37f8bb53d07bedf9aa0aa9d1e4726ccfdc039 100644 (file)
@@ -154,7 +154,10 @@ check_include_file(sys/random.h     HAVE_SYS_RANDOM_H)
 check_include_file(sys/stat.h       HAVE_SYS_STAT_H)
 check_include_file(xlocale.h        HAVE_XLOCALE_H)
 
-if (HAVE_INTTYPES_H AND NOT MSVC)
+if (HAVE_INTTYPES_H)
+       # Set a json-c specific var to stamp into json_config.h
+       # in a way that hopefull ywon't conflict with other 
+       # projects that use json-c.
     set(JSON_C_HAVE_INTTYPES_H 1)
 endif()