Changeset 135 for cpp/common
- Timestamp:
- 02/17/14 12:32:11 (11 years ago)
- Location:
- cpp/common
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/common/nonstd.h
r123 r135 55 55 #define stricmp(a,b) strcasecmp(a,b) 56 56 #endif 57 #ifdef INITIAL_DIR_IS_HOME58 #include "cwd.h"59 #define GET_APP_HOME getAppHome()60 #else61 #define GET_APP_HOME "./"62 #endif63 #ifdef INITIAL_DIR_IS_RES64 #include "cwd.h"65 #define GET_APP_RESOURCES getAppResources()66 #else67 #define GET_APP_RESOURCES "./"68 #endif69 57 #endif 70 58 … … 96 84 #endif 97 85 86 #ifdef LINUX 87 #define GET_APP_HOME "./" 88 #define GET_APP_RESOURCES "./" 89 #endif 90 98 91 #if defined(_WIN32) && !defined(SHP) 99 92 #define GET_APP_HOME ".\\" … … 101 94 #endif 102 95 96 #ifdef INITIAL_DIR_IS_HOME 97 #include "cwd.h" 98 #ifdef GET_APP_HOME 99 #undef GET_APP_HOME 100 #endif 101 #define GET_APP_HOME getAppHome() 102 #endif 103 103 104 104 #ifdef INITIAL_DIR_IS_RES 105 #include "cwd.h" 106 #ifdef GET_APP_RESOURCES 107 #undef GET_APP_RESOURCES 108 #endif 109 #define GET_APP_RESOURCES getAppResources() 110 #endif 105 111 106 112 //typedef unsigned char boolean; //niestety nie mozna uzyc 'bool' bo VC w rpcndr.h wlasnie tak definiuje booleana, jako unsigned char -
cpp/common/nonstd_math.cpp
r122 r135 14 14 15 15 16 #if def _WIN32 //http://stackoverflow.com/questions/2170385/c-math-functions17 double round(double val) 16 #if defined __BORLANDC__ || (_MSC_VER <= 1700) 17 double round(double val) //http://stackoverflow.com/questions/2170385/c-math-functions 18 18 { 19 19 return floor(val + 0.5); -
cpp/common/nonstd_math.h
r122 r135 17 17 #endif 18 18 19 #if def _WIN32 //http://stackoverflow.com/questions/2170385/c-math-functions20 double round(double val); 19 #if defined __BORLANDC__ || (_MSC_VER <= 1700) 20 double round(double val); //http://stackoverflow.com/questions/2170385/c-math-functions 21 21 #endif 22 22
Note: See TracChangeset
for help on using the changeset viewer.