Skip to content

Commit 8b20b7a

Browse files
mathstufcdunn2001
authored andcommitted
amalgamate: add version.h and allocator.h to the forwards header
Required to get JSONCPP_USING_SECURE_MEMORY and the SecureAllocator available for the definition of Allocator.
1 parent 2e54e8f commit 8b20b7a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

amalgamate.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ def amalgamate_source(source_top_dir=None,
9999
header.add_text("/// If defined, indicates that the source file is amalgamated")
100100
header.add_text("/// to prevent private header inclusion.")
101101
header.add_text("#define JSON_IS_AMALGAMATION")
102+
header.add_file(os.path.join(INCLUDE_PATH, "version.h"))
103+
header.add_file(os.path.join(INCLUDE_PATH, "allocator.h"))
102104
header.add_file(os.path.join(INCLUDE_PATH, "config.h"))
103105
header.add_file(os.path.join(INCLUDE_PATH, "forwards.h"))
104106
header.add_text("#endif //ifndef JSON_FORWARD_AMALGAMATED_H_INCLUDED")

0 commit comments

Comments
 (0)