davidmoreno / onion

C library to create simple HTTP servers and Web Applications.
http://www.coralbits.com/libonion/
Other
2.02k stars 250 forks source link

Define C++ extra handlers in the correct namespace to fix linking #212

Closed TartanLlama closed 7 years ago

TartanLlama commented 7 years ago

The extra handlers used to be defined in the global namespace rather than Onion, so client code would compile against the headers, but throw up undefined references at link time. This patch defines the handlers in Onion so that linking succeeds.