Changeset 123 for cpp/common
- Timestamp:
- 02/10/14 17:08:23 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/common/nonstd.h
r109 r123 1 // This file is a part of the Framsticks GDK. 2 // Copyright (C) 2002-2014 Maciej Komosinski and Szymon Ulatowski. See LICENSE.txt for details. 3 // Refer to http://www.framsticks.com/ for further information. 4 1 5 #ifndef _NONSTD_H_ 2 6 #define _NONSTD_H_ … … 18 22 // ms visual c++ 19 23 #ifdef _MSC_VER 20 #include <stdio.h> // musi byc najpierw ten include zeby robic definy ponizej (albo bedzie '_vsnprintf': attributes inconsistent with previous declaration, stdio.h:358)24 #include <stdio.h> //this #include must be present before two #defines below can be used, otherwise one will see: '_vsnprintf': attributes inconsistent with previous declaration, stdio.h:358 21 25 #define vsnprintf _vsnprintf 22 26 #define snprintf _snprintf … … 48 52 #ifdef LINUX 49 53 #include <strings.h> 50 #define stricmp(a,b) strcasecmp(a,b) 51 #define _isnan(a) isnan(a) //do nonstd_math.h? 54 #ifndef __CYGWIN__ 55 #define stricmp(a,b) strcasecmp(a,b) 56 #endif 52 57 #ifdef INITIAL_DIR_IS_HOME 53 58 #include "cwd.h" … … 70 75 #ifdef IPHONE 71 76 #include <string> 72 #define _isnan(a) isnan(a) //do nonstd_math.h?73 77 std::string getAppHome(); 74 78 std::string getAppResources(); … … 78 82 79 83 #ifdef SHP 80 //#define __assert_func(a,b,c,d) 0 //Currently, we are sorry to inform you that assert() is not yet supported. We have considered your request for internal discussion. No ale na szczêcie w³asna (byle by by³a, bo i tak zak³adamy ze assert ktore przeciez dziala tylko w trybie debug nie jest potrzebne na bada) implementacja w "bada-assert.cpp"81 84 #define GET_APP_HOME "/Home/" 82 85 #define GET_APP_RESOURCES "/Res/" … … 100 103 101 104 102 #ifdef MAIN_FRAMSTICKS103 #define SCRIPTS_DIR GET_APP_RESOURCES "scripts" //katalogi sa na iphone std::string a gdzie indziej "const char*" i to sie wszedzie kompiluje?104 #endif105 106 107 105 108 106 //typedef unsigned char boolean; //niestety nie mozna uzyc 'bool' bo VC w rpcndr.h wlasnie tak definiuje booleana, jako unsigned char
Note: See TracChangeset
for help on using the changeset viewer.