beltoforion / muparserx

A C++ Library for Parsing Expressions with Strings, Complex Numbers, Vectors, Matrices and more.
http://beltoforion.de/en/muparserx
BSD 2-Clause "Simplified" License
136 stars 60 forks source link

Fixed msvc compile for example code #86

Closed guruofquality closed 6 years ago

guruofquality commented 6 years ago

The ifdefs in timer.cpp were not working for msvc 2015 64 bit, so I changed the define to match example.cpp which uses _WIN32

I usually disable the example, but I thought it would be nice to fix it upstream. The ifdefs are just changed to match the other code so it shouldn’t be a big deal for anyone that was already compiling.

Just a thought, but let me know if you would like to see timer.cpp written around std::chrono without the ifdefs, since we do rely on c++11 anyone, that shouldn’t be a problem from a dependency standpoint.