Skip to content

Commit bde12e9

Browse files
committed
Make compatible with Visual Studio 2015
Changes are identicall to facebookarchive#105
1 parent f1c32e3 commit bde12e9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Lib/LibStatic/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ IF(WIN32 AND NOT UNIX AND NOT MSYS)
1717

1818
IF(NOT ${CMAKE_GENERATOR} STREQUAL "MSYS Makefiles")
1919

20-
IF( MSVC10 OR MSVC11 OR MSVC12 )
20+
IF( MSVC10 OR MSVC11 OR MSVC12 OR MSVC14 )
2121
set_target_properties(RakNetLibStatic PROPERTIES STATIC_LIBRARY_FLAGS "/NODEFAULTLIB:\"LIBCD.lib LIBCMTD.lib MSVCRT.lib\"" )
2222
ELSE()
2323
set_target_properties(RakNetLibStatic PROPERTIES STATIC_LIBRARY_FLAGS "/NODEFAULTLIB:"LIBCD.lib LIBCMTD.lib MSVCRT.lib"" )

Source/CCRakNetSlidingWindow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ static const CCTimeType SYN=10000;
2222

2323
#include "MTUSize.h"
2424
#include <stdio.h>
25-
#include <math.h>
25+
#include <cmath>
2626
#include <stdlib.h>
2727
#include "RakAssert.h"
2828
#include "RakAlloca.h"

0 commit comments

Comments
 (0)