Maximilien Siavelis
2019-05-06 a80ec016c298b03843cf7c544f52e65dbcbf0566
fix build with MSVC
2个文件已修改
6 ■■■■ 已修改文件
README.md 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/library/os/os.h 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
README.md
@@ -47,9 +47,9 @@
make install
```
## on Windows (with MSVC 2010)
## on Windows (with MSVC 2015)
```
cmake .. -G "Visual Studio 10 2010 Win64" -DCMAKE_INSTALL_PREFIX=../install
cmake .. -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=../install
cmake --build . --target install --config Release
```
src/library/os/os.h
@@ -17,10 +17,10 @@
#include <string.h>
#include <ctype.h>
#include <sys/types.h>
#include <unistd.h>
//definition of size_t
#include <stdlib.h>
#ifdef __unix__
#include <unistd.h>
#include <stdbool.h>
#endif