Changeset 936 for cpp/common
- Timestamp:
- 05/30/20 20:25:42 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/common/nonstd.h
r931 r936 46 46 #endif 47 47 48 #if defined MACOS || defined __ANDROID__ || defined IPHONE48 #if defined(MACOS) || defined(__ANDROID__) || defined(IPHONE) 49 49 #define stricmp(a,b) strcasecmp(a,b) 50 50 #define strnicmp(a,b,c) strncasecmp(a,b,c) … … 55 55 //typedef char byte; //rozne srodowiska c++ definiuja byte jako unsigned char! w javie jest inaczej -> trzeba i tak zmienic w portowanych zrodlach byte na char. 56 56 57 //How cool, gcc&clang: qsort_r(a,b), borland: qsort_s(a,b), visual: qsort_s(b,a) 58 #ifdef __BORLANDC__ 59 #define qsort_r qsort_s 60 #endif 61 57 62 #ifdef _MSC_VER 58 #define QSORT_R_USING_QSORT_S //qsort_r callers use this macro to adjust argument order in comparator, because microsoft and gcc/clang are incompatible here59 #define qsort_r(base,nmemb,size,compar,context) qsort_s((base),(nmemb),(size),(compar),(context))63 #define QSORT_R_USING_QSORT_S //qsort_r callers use this macro to adjust argument order in comparator, because microsoft and gcc&clang are incompatible here 64 #define qsort_r(base,nmemb,size,compar,context) qsort_s((base),(nmemb),(size),(compar),(context)) 60 65 #endif 61 66
Note: See TracChangeset
for help on using the changeset viewer.