mayah / tinytoml

A header only C++11 library for parsing TOML
BSD 2-Clause "Simplified" License
167 stars 31 forks source link

🐛🏁 Fix collision with a windows defined macro #31

Closed nshtg closed 6 years ago

nshtg commented 6 years ago

Windows defines a macro called ERROR in wingdi.h:

#define ERROR               0

This lead to numerous errors when trying to include toml.h. Instead of relying on preprocessor conditions I chose to simply rename the token type to ERROR_TOKEN.

mayah commented 6 years ago

Oh, thank you! LGTM