Changeset 931 for cpp/frams/vm


Ignore:
Timestamp:
05/28/20 17:56:12 (4 years ago)
Author:
Maciej Komosinski
Message:

Supported all platforms using either qsort_r() or qsort_s()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/vm/classes/collectionobj.cpp

    r930 r931  
    270270        VMachine *vm;
    271271        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
    272275        static int compare(const void *a, const void *b, void* _this);
     276#endif
    273277};
    274278
     279#ifdef QSORT_R_USING_QSORT_S
     280int VMVEComparator::compare(void* _this, const void *a, const void *b)
     281#else
    275282int VMVEComparator::compare(const void *a, const void *b, void* _this)
     283#endif
    276284{
    277285        VMachine *vm = ((VMVEComparator*)_this)->vm;
Note: See TracChangeset for help on using the changeset viewer.