SDL/src/thread
Sam Lantinga de541d5072 Partial fix for bug 2758 - Android issues with NDK r10c and API-21
Sylvain

When using API 21 and running on an old device (android < 5.0 ?) some function are missing.

functions are (at least) : signal, sigemptyset, atof, stpcpy (strcat and strcpy), srand, rand.


Very few modifications on SDL to get this working :

on SDL
======

Undefine android configuration :

HAVE_SIGNAL
HAVE_SIGACTION
HAVE_ATOF

In "SDL_systrhead.c", comment out the few block of lines with "sigemptyset".

Android.mk:
remove the compilation of "test" directory because it contains a few rand/srand calls

Also, there are more discussions about this in internet :
https://groups.google.com/forum/#!topic/android-ndk/RjO9WmG9pfE
http://stackoverflow.com/questions/25475055/android-ndk-load-library-cannot-locate-srand
2015-06-17 00:07:45 -07:00
..
generic Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
psp Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
pthread Partial fix for bug 2758 - Android issues with NDK r10c and API-21 2015-06-17 00:07:45 -07:00
stdcpp Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
windows Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
SDL_systhread.h Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
SDL_thread_c.h Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
SDL_thread.c Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00