aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/basetypes/MCAndroid.h
blob: 464a583d2c9f20ebb8563b97b2ce1c6d2140730f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef FREEBSD_QSORT_R_H

#define FREEBSD_QSORT_R_H

#if defined(ANDROID) || defined(__ANDROID__)

#ifdef __cplusplus

#include <stdint.h>

#define MIN(a,b) (((a)<(b))?(a):(b))
#define MAX(a,b) (((a)>(b))?(a):(b))

namespace mailcore {
    extern void
        android_qsort_r(void *a, size_t n, size_t es, void *thunk, int (* cmp)(void *, const void *, const void *));
}

#endif

#endif

#endif