Changeset 835 for cpp/common


Ignore:
Timestamp:
12/05/18 21:02:00 (6 years ago)
Author:
Maciej Komosinski
Message:

ISO C++17 compliance including NULL, nullptr, templates and pointer conversions

Location:
cpp/common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpp/common/nonstd_math.cpp

    r492 r835  
    1313
    1414
    15 
    16 #if (defined __BORLANDC__ || (_MSC_VER <= 1700)) & (!defined EMSCRIPTEN)
    17 double round(double val) //http://stackoverflow.com/questions/2170385/c-math-functions
    18 {   
    19     return floor(val + 0.5);
    20 }
    21 #endif
    2215
    2316
  • cpp/common/nonstd_math.h

    r665 r835  
    11// This file is a part of Framsticks SDK.  http://www.framsticks.com/
    2 // Copyright (C) 1999-2015  Maciej Komosinski and Szymon Ulatowski.
     2// Copyright (C) 1999-2018  Maciej Komosinski and Szymon Ulatowski.
    33// See LICENSE.txt for details.
    44
     
    1717#endif
    1818
    19 #if (defined __BORLANDC__ || (_MSC_VER <= 1700)) & (!defined EMSCRIPTEN)
    20   double round(double val);  //http://stackoverflow.com/questions/2170385/c-math-functions
    21 #endif
    2219
    2320
     
    7067
    7168#endif
     69
Note: See TracChangeset for help on using the changeset viewer.