Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Changes needed to work with Visual Studio 2015 #105

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Changes needed to work with Visual Studio 2015 #105

wants to merge 2 commits into from

Conversation

makiolo
Copy link

@makiolo makiolo commented Dec 8, 2016

minor changes, but needed.
Thanks.

ambiguation with abs function
compatibility with Visual Studio 2015
davidcernat added a commit to TES3MP/CrabNet that referenced this pull request Jan 11, 2017
@@ -17,7 +17,7 @@ IF(WIN32 AND NOT UNIX)

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

IF( MSVC10 OR MSVC11 OR MSVC12 )
IF( MSVC10 OR MSVC11 OR MSVC12 OR MSVC14 )

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like a duplicate of this PR: #64
which I commented. The proper way to do it here, would probably be:

if (MSVC_VERSION GREATER_EQUAL 1600)

@@ -22,7 +22,7 @@ static const CCTimeType SYN=10000;

#include "MTUSize.h"
#include <stdio.h>
#include <math.h>
#include <cmath>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I commented also on #64,
personally I would rather just change the abs to an fabs and avoid header changes like this.

@Luke1410
Copy link

FYI: As pointed out by @davidstlyoui , the changes are actually a duplicate of #64 which was already incorporated in SLikeNet 0.1.0 and therefore is available in our fork as well: https://github.com/SLikeSoft/SLikeNet .

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants