mirror of
https://github.com/ETLCPP/etl.git
synced 2026-04-30 19:09:10 +08:00
Modified Windows check.
This commit is contained in:
parent
2192e7f896
commit
d313ec0da0
@ -27,7 +27,7 @@ SOFTWARE.
|
||||
******************************************************************************/
|
||||
|
||||
#include "UnitTest++.h"
|
||||
#if defined(ETL_PLATFORM_WINDOWS)
|
||||
#if defined(_WINDOWS)
|
||||
#include <Windows.h>
|
||||
#endif
|
||||
#include <sstream>
|
||||
@ -61,7 +61,7 @@ void receive_error(const etl::exception& e)
|
||||
std::ostringstream oss;
|
||||
oss << "Error '" << e.what() << "' in " << e.file_name() << " at line " << e.line_number() << "\n";
|
||||
|
||||
#if defined(ETL_PLATFORM_WINDOWS) && defined(ETL_COMPILER_MICROSOFT)
|
||||
#if defined(_WINDOWS) && defined(ETL_COMPILER_MICROSOFT)
|
||||
std::string stext = oss.str();
|
||||
|
||||
WCHAR text[200];
|
||||
@ -86,7 +86,7 @@ public:
|
||||
std::ostringstream oss;
|
||||
oss << "Error '" << e.what() << "' in " << e.file_name() << " at line " << e.line_number() << "\n";
|
||||
|
||||
#if defined(ETL_PLATFORM_WINDOWS) && defined(ETL_COMPILER_MICROSOFT)
|
||||
#if defined(_WINDOWS) && defined(ETL_COMPILER_MICROSOFT)
|
||||
std::string stext = oss.str();
|
||||
|
||||
WCHAR text[200];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user