diff options
author | Eric Haszlakiewicz <erh+git@nimenees.com> | 2021-06-13 21:12:22 +0000 |
---|---|---|
committer | Eric Haszlakiewicz <erh+git@nimenees.com> | 2021-06-13 21:12:22 +0000 |
commit | 75bf657cc285c1b726492ed6af3645ea95fe17ac (patch) | |
tree | 2463ee2c9b6b11808ca33eefc318e97e743d8af7 | |
parent | 9ca50cf2f81ff66b9f0cf9b5c418cafafce82715 (diff) | |
download | json-c-75bf657cc285c1b726492ed6af3645ea95fe17ac.tar.gz |
If inttypes.h is present, use it, even on Windows.
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e870cca..01d37f8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() |