search for: __android__

Displaying 8 results from an estimated 8 matches for "__android__".

2014 Apr 09
2
Patch to fix compiler warnings and error status collisions
...ded was this: diff --git a/src/flac/utils.c b/src/flac/utils.c index 4bf05e2..941a958 100644 --- a/src/flac/utils.c +++ b/src/flac/utils.c @@ -35,7 +35,7 @@ #ifdef HAVE_TERMIOS_H # include <termios.h> #endif -#ifdef GWINSZ_IN_SYS_IOCTL +#if !defined __ANDROID__ # include <sys/ioctl.h> #endif #endif because that seemed completely un-related. What's this bit all about? Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/
2014 Apr 11
0
Patch to fix compiler warnings and error status collisions
This also causes a warning and looks like it is the wrong #ifdef. ioctl() is only used inside of a '#if !defined __ANDROID__'. Note, this compiler warning was generated when compiling on Mac OSX 10.9 with clang: utils.c:189:6: warning: implicit declaration of function 'ioctl' is invalid in C99 [-Wimplicit-function-declaration] Also, at the moment, TOT does not compile. It is missing the file fixed_int...
2015 Jul 09
1
[PATCH] cpu.c and Android
According to https://developer.android.com/ndk/guides/abis.html#x86 Android always support SSE, so there's no need to test SSE OS support. Why both __ANDROID__ and ANDROID are tested: http://stackoverflow.com/questions/15328751/android-macro-suddenly-not-defined http://stackoverflow.com/questions/6374523/how-to-detect-compilation-by-android-ndk-in-a-c-c-file https://groups.google.com/forum/#!topic/android-ndk/cf9_f1SLXls -------------- next part ---------...
2010 Nov 18
1
[LLVMdev] Compiling LLVM libraries for Android
Hi, I'm compiling LLVM libraries for android platform using android nk r4 from crystax that supports c++ and rtti libs. I'm facing the problem that there gcc compiler doesn't support __clear_cache function of Memory.cpp (line 699) for the librarie LLVMSystem. Is there a way to bypass this limitation without puts a comment on this line? Regards Jérôme Gorin -------------- next part
2013 May 15
2
FLAC currently won't compile for Android [bisected]
Felix Homann wrote: > Here are the warnings I get with 03a9e6064d406e3656afacdbe50e8e47ebfa0de3: It seems Android sys/param.h doesn't define MIN/MAX. Could you try to revert this commit on current master (or simply change line 35 of src/libFLAC/include/private/macros.h back to #if defined(__GNUC__) ) and recompile? Or possibly bisect 03a9e60..master to find out when the
2013 May 23
2
FLAC currently won't compile for Android [bisected]
...int console_chars_left; int get_console_width(void) { int width = 80; -#ifdef _WIN32 +#if defined _WIN32 width = win_get_console_width(); #elif defined __EMX__ - int s[2]; - _scrsize (s); - width = s[0]; -#else + int s[2]; + _scrsize (s); + width = s[0]; +#elif !defined __ANDROID__ struct winsize w; if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &w) != -1) width = w.ws_col; #endif
2014 Apr 07
2
Patch to fix compiler warnings and error status collisions
On Apr 7, 2014, at 4:07 AM, Erik de Castro Lopo <mle+la at mega-nerd.com> wrote: > Lenny Maiorani wrote: > >> I am new around here, so I am not sure of all your procedures >> for submitting patches/pull requests. > > A patch like you sent is fine. When I commit that I will add > a Patch-from line to the commit. > > Otherwise, you can commit to you local
2013 Nov 05
1
[LLVMdev] Android build patch
I suppose I was just doing the "smallest" thing. Disabling the hack entirely also allows it to build and is probably the correct thing to do. I'm not that knowledgeable about glibc vs. Bionic differences so the thing to do would be to test whether those functions work without the "hack" on Android. Unfortunately at the moment I can't get my Android JIT test program