Changeset 931
- Timestamp:
- 05/28/20 17:56:12 (5 years ago)
- Location:
- cpp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/common/nonstd.h
r886 r931 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-20 19Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2020 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 … … 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 57 #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 here 59 #define qsort_r(base,nmemb,size,compar,context) qsort_s((base),(nmemb),(size),(compar),(context)) 60 #endif 58 61 59 62 #ifdef __BORLANDC__ -
cpp/frams/vm/classes/collectionobj.cpp
r930 r931 270 270 VMachine *vm; 271 271 VMVEComparator(VMachine::JumpTargetObject *_jto) :jto(_jto), vm(jto->vm) {} 272 #ifdef QSORT_R_USING_QSORT_S 273 static int compare(void* _this, const void *a, const void *b); 274 #else 272 275 static int compare(const void *a, const void *b, void* _this); 276 #endif 273 277 }; 274 278 279 #ifdef QSORT_R_USING_QSORT_S 280 int VMVEComparator::compare(void* _this, const void *a, const void *b) 281 #else 275 282 int VMVEComparator::compare(const void *a, const void *b, void* _this) 283 #endif 276 284 { 277 285 VMachine *vm = ((VMVEComparator*)_this)->vm;
Note: See TracChangeset
for help on using the changeset viewer.