Skip to content

Commit 75bf657

Browse files
committed
If inttypes.h is present, use it, even on Windows.
1 parent 9ca50cf commit 75bf657

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,10 @@ check_include_file(sys/random.h HAVE_SYS_RANDOM_H)
154154
check_include_file(sys/stat.h HAVE_SYS_STAT_H)
155155
check_include_file(xlocale.h HAVE_XLOCALE_H)
156156

157-
if (HAVE_INTTYPES_H AND NOT MSVC)
157+
if (HAVE_INTTYPES_H)
158+
# Set a json-c specific var to stamp into json_config.h
159+
# in a way that hopefull ywon't conflict with other
160+
# projects that use json-c.
158161
set(JSON_C_HAVE_INTTYPES_H 1)
159162
endif()
160163

0 commit comments

Comments
 (0)