mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 21:35:11 +01:00
tools/headerversions.c: fix build without SQLite
Commit531845971c
broke the build without SQLite because this code: new = tal_fmt(NULL, template, IF_SQLITE3(sqlite3_libversion_number())); preprocesses into: new = tal_fmt(NULL, template, ); which has a syntax error. Fix it by moving the comma into the macro argument. Fixes:531845971c
Changelog-None
This commit is contained in:
parent
2e52df41dd
commit
67d667db90
@ -49,8 +49,8 @@ int main(int argc, char *argv[])
|
||||
if (!file && errno != ENOENT)
|
||||
err(1, "Reading %s", argv[1]);
|
||||
|
||||
new = tal_fmt(NULL, template,
|
||||
IF_SQLITE3(sqlite3_libversion_number()));
|
||||
new = tal_fmt(NULL, template
|
||||
IF_SQLITE3(, sqlite3_libversion_number()));
|
||||
if (!file || !streq(new, file)) {
|
||||
int fd = open(argv[1], O_TRUNC|O_WRONLY|O_CREAT, 0666);
|
||||
if (fd < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user