c9s / r3

libr3 is a high-performance path dispatching library. It compiles your route paths into a prefix tree (trie). By using the constructed prefix trie in the start-up time, you may dispatch your routes with efficiency
http://c9s.github.com/r3/bench.html
MIT License
813 stars 83 forks source link

Don't typedef bool if compiling with C++ #83

Closed sjones608 closed 8 years ago

sjones608 commented 8 years ago

If using the C++ wrapper provided by r3.hpp, you get a compiler error when r3_define.h tries to typedef bool as C++ already has native bool type. Modified the guard around this typedef to include a check for C++ compilation (!defined(__cplusplus)).

c9s commented 8 years ago

Thanks!