Following the 448d47f20cad1dbe14d66842980e5e82d04153d7 commit, it's no longer possibly to include lwan.h from a C++ source file without modifications: the lwan_module.new field is getting interpreted as the new keyword, resulting in compilation errors.
/usr/local/include/lwan/lwan.h:328:13: error: expected unqualified-id before ‘new’
void *(*new)(const char *prefix, void *args);
^
/usr/local/include/lwan/lwan.h:328:13: error: expected ‘)’ before ‘new’
/usr/local/include/lwan/lwan.h:328:12: error: expected ‘;’ at end of member declaration
void *(*new)(const char *prefix, void *args);
^
/usr/local/include/lwan/lwan.h:328:13: error: expected unqualified-id before ‘new’
void *(*new)(const char *prefix, void *args);
Following the 448d47f20cad1dbe14d66842980e5e82d04153d7 commit, it's no longer possibly to include lwan.h from a C++ source file without modifications: the
lwan_module.new
field is getting interpreted as thenew
keyword, resulting in compilation errors.