Changeset 492 for cpp/common


Ignore:
Timestamp:
03/31/16 00:34:37 (9 years ago)
Author:
Maciej Komosinski
Message:

emscripten compatibility

Location:
cpp/common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpp/common/nonstd_math.cpp

    r471 r492  
    1414
    1515
    16 #if defined __BORLANDC__ || (_MSC_VER <= 1700)
     16#if (defined __BORLANDC__ || (_MSC_VER <= 1700)) & (!defined EMSCRIPTEN)
    1717double round(double val) //http://stackoverflow.com/questions/2170385/c-math-functions
    1818{   
  • cpp/common/nonstd_math.h

    r286 r492  
    1717#endif
    1818
    19 #if defined __BORLANDC__ || (_MSC_VER <= 1700)
    20 double round(double val);  //http://stackoverflow.com/questions/2170385/c-math-functions
     19#if (defined __BORLANDC__ || (_MSC_VER <= 1700)) & (!defined EMSCRIPTEN)
     20  double round(double val);  //http://stackoverflow.com/questions/2170385/c-math-functions
    2121#endif
    2222
Note: See TracChangeset for help on using the changeset viewer.