Skip to content

Commit

Permalink
If inttypes.h is present, use it, even on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
hawicz committed Jun 13, 2021
1 parent 9ca50cf commit 75bf657
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 75bf657

Please sign in to comment.