From 681ed087b6e061966afdbe3a0a837940c643fd6d Mon Sep 17 00:00:00 2001 From: Maximilien Siavelis <maximilien.siavelis@simulease.com> Date: 周一, 06 5月 2019 01:00:28 +0800 Subject: [PATCH] fix build with MSVC --- src/library/os/os.h | 2 +- README.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 85649a0..88a5e13 100644 --- a/README.md +++ b/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 ``` diff --git a/src/library/os/os.h b/src/library/os/os.h index d953d1a..11aa844 100644 --- a/src/library/os/os.h +++ b/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 -- Gitblit v1.9.1