Windows "compatibility"

* Makefile changes allowing for cross-compilation
* SRDData: had to rename an enum member from ERROR to ERR because
apparently creating a macro called ERROR is a thing in the windows
headers
* DynLib: ported
* Strings: fixes in toOSString, untested for now
* Fixes in some tests
* TODO list update
This commit is contained in:
Emmanuel BENOîT 2018-06-17 12:39:02 +02:00
parent ae2ad1f8b4
commit 30d8d3057e
9 changed files with 157 additions and 34 deletions

View file

@ -19,4 +19,8 @@
#include <thread>
#include <utility>
#ifdef _WIN32
# include <windows.h>
#endif // _WIN32
#endif // _H_EBCL_EXTERNALS

View file

@ -118,7 +118,7 @@ M_LSHIFT_OP( T_StringBuilder , T_SRDLocation const& ) noexcept;
// Type of an error record
enum class E_SRDErrorType {
ERROR ,
ERR ,
WARNING ,
NOTE
};
@ -137,7 +137,7 @@ class T_SRDError
T_SRDError( T_String error ,
T_SRDLocation location ,
E_SRDErrorType type = E_SRDErrorType::ERROR ) noexcept;
E_SRDErrorType type = E_SRDErrorType::ERR ) noexcept;
T_SRDError( T_SRDError const& other ) noexcept;
T_SRDError& operator= ( T_SRDError const& other ) noexcept;