embeddedmz / ftpclient-cpp

C++ client for making FTP requests
MIT License
204 stars 65 forks source link

WINDOWS: DEFINE_ENUM_FLAG_OPERATORS(SettingsFlag) #16

Closed matteocostantini closed 3 years ago

matteocostantini commented 3 years ago

Add DEFINE_ENUM_FLAG_OPERATORS(SettingsFlag) if WINDOWS or _WINDOWS or _WIN32 is defined!

embeddedmz commented 3 years ago

Thanks ! I tried this macro, but it created compile errors (including winnt.h causes troubles under VS2019, sometimes including windows.h helps fixing these errors but it didn't work with the class - it has worked with the unit tests program though).

So, I only added operator | (pipe) overloading for now.