權少
權少
1. Use `SetConsoleTextAttribute` to support Colorized output on Windows. 2. Must set `NOMINMAX` when use `std::min` on Windows. 3. `__cplusplus` is not enough to check MSVC standard.
```cmake # 1. Build pforth executable add_executable(pforth csrc/pf_main.c) target_link_libraries(pforth ${PROJECT_NAME}_lib m) ``` How to compile the `m` library in MSVC?
WinCE lacks many functions like `_wsopen_s`,should use `CreateFileW` instead。 ```cpp #include "stdafx.h" #include #include #include int _tmain(int argc, _TCHAR* argv[]) { plog::init(plog::debug, "/Storage Card/test.log"); PLOG(plog::debug)
Compatibility with versions of CMake older than 3.10 is deprecated.