]>
Commit | Line | Data |
---|---|---|
1 | /////////////////////////////////////////////////////////////////////////////// | |
2 | // Name: wx/android/config_android.h | |
3 | // Purpose: configurations for Android builds | |
4 | // Author: Zsolt Bakcsi | |
5 | // Modified by: | |
6 | // Created: 2011-12-02 | |
7 | // RCS-ID: | |
8 | // Copyright: (c) wxWidgets team | |
9 | // Licence: wxWindows licence | |
10 | /////////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | // Please note that most of these settings are based on config_xcode.h and | |
13 | // 'fine-tuned' on a trial-and-error basis. This means, no in-depth analysis | |
14 | // of Android docs / source was done. | |
15 | ||
16 | #define wxUSE_UNIX 1 | |
17 | #define __UNIX__ 1 | |
18 | ||
19 | #define HAVE_NANOSLEEP | |
20 | #define HAVE_FCNTL 1 | |
21 | #define HAVE_GCC_ATOMIC_BUILTINS | |
22 | #define HAVE_GETHOSTBYNAME 1 | |
23 | #define HAVE_GETSERVBYNAME 1 | |
24 | #define HAVE_GETTIMEOFDAY 1 | |
25 | #define HAVE_GMTIME_R 1 | |
26 | #define HAVE_INET_ADDR 1 | |
27 | #define HAVE_INET_ATON 1 | |
28 | #define HAVE_LOCALTIME_R 1 | |
29 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
30 | #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1 | |
31 | #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 | |
32 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
33 | #define HAVE_SSIZE_T 1 | |
34 | #define HAVE_WPRINTF 1 | |
35 | ||
36 | #define SIZEOF_INT 4 | |
37 | #define SIZEOF_LONG 4 | |
38 | #define SIZEOF_LONG_LONG 8 | |
39 | #define SIZEOF_SIZE_T 4 | |
40 | #define SIZEOF_VOID_P 4 | |
41 | #define SIZEOF_WCHAR_T 4 | |
42 | ||
43 | #define wxHAVE_PTHREAD_CLEANUP 1 | |
44 | #define wxNO_WOSTREAM | |
45 | #define wxSIZE_T_IS_UINT 1 | |
46 | #define wxWCHAR_T_IS_REAL_TYPE 1 | |
47 | ||
48 | #define wxTYPE_SA_HANDLER int | |
49 | ||
50 | #define wxUSE_SELECT_DISPATCHER 1 | |
51 | ||
52 | #ifdef HAVE_PTHREAD_CANCEL | |
53 | // Android doesn't support pthread_cancel(). | |
54 | #undef HAVE_PTHREAD_CANCEL | |
55 | #endif |