Skip to content

Commit 9ccc3ff

Browse files
committed
Fix macro definition
1 parent dbf8454 commit 9ccc3ff

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

toml/toml_version.hpp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,11 @@
1717
* making it possible to link multiple packages that internally use toml11 in
1818
* different versions.
1919
*/
20+
#define TOML11_GENERATE_INLINE_VERSION_NAMESPACE(major, minor, patch) \
21+
TOML11_CONCAT(toml11_, major, _, minor, _, patch)
22+
2023
#define TOML11_INLINE_VERSION_NAMESPACE \
21-
TOML11_CONCAT( \
22-
toml11_, \
23-
TOML11_VERSION_MAJOR, \
24-
_, \
25-
TOML11_VERSION_MINOR, \
26-
_, \
27-
TOML11_VERSION_PATCH)
24+
TOML11_GENERATE_INLINE_VERSION_NAMESPACE( \
25+
TOML11_VERSION_MAJOR, TOML11_VERSION_MINOR, TOML11_VERSION_PATCH)
2826

2927
#endif // TOML11_TOML11_VERSION_HPP

0 commit comments

Comments
 (0)