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

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
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)

#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.

3 participants