Check-in [870c068689]
Overview
Comment:More android fixes
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:870c06868982aeea2a2478d9bcaefe854c2f6d03
User & Date: rkeene on 2014-05-17 06:15:50
Other Links: manifest | tags
Context
2014-05-17
06:17
tcc4tcl 0.9 check-in: 21f45d469d user: rkeene tags: trunk, 0.9
06:15
More android fixes check-in: 870c068689 user: rkeene tags: trunk
06:00
tcc4tcl 0.8 check-in: 6b1cb98484 user: rkeene tags: trunk, 0.8
Changes

Modified build/tcc-patches/0.9.26/tcc-0.9.26-android.diff from [5aa6f17983] to [e50bd7eb09].

     1      1   diff -uNr tcc-0.9.26.orig/tcc.h tcc-0.9.26-1android/tcc.h
     2      2   --- tcc-0.9.26.orig/tcc.h	2013-02-15 08:24:00.000000000 -0600
     3         -+++ tcc-0.9.26-1android/tcc.h	2014-05-16 23:38:17.599016999 -0500
            3  ++++ tcc-0.9.26-1android/tcc.h	2014-05-17 01:13:09.189016999 -0500
     4      4   @@ -43,7 +43,9 @@
     5      5    #ifndef _WIN32
     6      6    # include <unistd.h>
     7      7    # include <sys/time.h>
     8      8   -# include <sys/ucontext.h>
     9      9   +# ifndef __ANDROID__
    10     10   +#  include <sys/ucontext.h>
................................................................................
    17     17    #endif
    18     18    
    19     19   -#if defined TCC_IS_NATIVE && !defined CONFIG_TCCBOOT
    20     20   +#if defined TCC_IS_NATIVE && !defined CONFIG_TCCBOOT && !defined __ANDROID__
    21     21    # define CONFIG_TCC_BACKTRACE
    22     22    #endif
    23     23    
           24  +@@ -917,8 +919,12 @@
           25  + #else
           26  + /* XXX: need to define this to use them in non ISOC99 context */
           27  + extern float strtof (const char *__nptr, char **__endptr);
           28  ++#ifdef __ANDROID__
           29  ++#  define strtold (long double)strtod
           30  ++#else
           31  + extern long double strtold (const char *__nptr, char **__endptr);
           32  + #endif
           33  ++#endif
           34  + 
           35  + #ifdef _WIN32
           36  + #define IS_DIRSEP(c) (c == '/' || c == '\\')
    24     37   diff -uNr tcc-0.9.26.orig/tccrun.c tcc-0.9.26-1android/tccrun.c
    25     38   --- tcc-0.9.26.orig/tccrun.c	2013-02-15 08:24:00.000000000 -0600
    26     39   +++ tcc-0.9.26-1android/tccrun.c	2014-05-16 23:38:36.949016999 -0500
    27     40   @@ -35,8 +35,10 @@
    28     41    
    29     42    static void set_pages_executable(void *ptr, unsigned long length);
    30     43    static void set_exception_handler(void);