adeharo9 / cpp-dotenv

Loads environment variables from .env files for C++ projects.
BSD 3-Clause "New" or "Revised" License
88 stars 21 forks source link

Fixing MacOS build #26

Closed tigranbs closed 2 years ago

tigranbs commented 2 years ago

First of all thanks a lot for making this library, we like it a lot in blockpulsar.com

This PR fixes MacOS build for this library, which I believe is because of Apple's own C++ compiler library changes, which seem to be slightly different than Linux-based C++ compilers. Fixes are pretty small and it's not touching any logic, just fixed some compiler requirements, which have been failing on my M1 Mac and another a bit old Intel Mac.

Tested this for compile