alandefreitas / matplotplusplus

Matplot++: A C++ Graphics Library for Data Visualization 📊🗾
https://alandefreitas.github.io/matplotplusplus/
MIT License
4.11k stars 313 forks source link

Fix to use localtime for Linux #288

Closed kwoodle closed 1 year ago

kwoodle commented 1 year ago

Changed axis_type.cpp to use localtime since localtime_s doesn't work in Linux. Added add_definitions(-D_CRT_SECURE_NO_WARNINGS) to source/matplot/CMakeLists.txt to make localhost work on Windows. I usually work in Linux. Not sure if this breaks anything on Windows, although I did build ContinuousBuild target and ran some examples.

alandefreitas commented 1 year ago

Nice! Thanks!

kwoodle commented 1 year ago

You're too kind!