]> git.ipfire.org Git - thirdparty/json-c.git/commitdiff
Fix typo 905/head
authorAnton Lundin <glance@ac2.se>
Mon, 1 Dec 2025 10:37:59 +0000 (11:37 +0100)
committerAnton Lundin <glance@ac2.se>
Mon, 1 Dec 2025 10:37:59 +0000 (11:37 +0100)
That include line wasn't valid code, so that resulted in:
Checking for size of "size_t" : -1

And later on:
json-c/json_patch.c:28:2: error: #error Unable to determine size of size_t

meson.build

index 43a73b484b9a014ad908bb895afbf3be7865ee9e..b0709efd1826f0df40b7aaad3b72f504ff0ca06d 100644 (file)
@@ -175,7 +175,7 @@ conf_data.set('SIZEOF_INT', cc.sizeof('int'))
 conf_data.set('SIZEOF_INT64_T', cc.sizeof('int64_t', prefix : '#include <stdint.h>'))
 conf_data.set('SIZEOF_LONG', cc.sizeof('long'))
 conf_data.set('SIZEOF_LONG_LONG', cc.sizeof('long long'))
-conf_data.set('SIZEOF_SIZE_T', cc.sizeof('size_t', prefix : '#include <stddef.h'))
+conf_data.set('SIZEOF_SIZE_T', cc.sizeof('size_t', prefix : '#include <stddef.h>'))
 if cc.get_argument_syntax() == 'msvc'
   conf_data.set('SIZEOF_SSIZE_T', cc.sizeof('SSIZE_T', prefix : '#include <BaseTsd.h>\n#include <stddef.h>'))
 else