mattgodbolt / seasocks

Simple, small, C++ embeddable webserver with WebSockets support
BSD 2-Clause "Simplified" License
734 stars 120 forks source link

DEBUG compiler macro causes error compiling src/main/c/seasocks/Logger.h #111

Closed bnfbiz closed 5 years ago

bnfbiz commented 5 years ago

When compiling if a macro for DEBUG is set, the system fails to build with:

:0:7: error: expected identifier before numeric constant C:\Users\blfarrel\git\CORERobotLib\3rdparty\seasocks\src\main\c/seasocks/Logger.h:40:9: note: in expansion of macro 'DEBUG' DEBUG, // NB DEBUG is usually opted-out of at compile-time. ^~~~~ :0:7: error: expected '}' before numeric constant
mattgodbolt commented 5 years ago

Will do a quick fix shortly (thanks for raising this!)