1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Fix Android build errors in libpng and libflac

This commit is contained in:
hogliux 2015-09-16 09:57:50 +01:00
parent adfe457b64
commit c17c4ec43b
2 changed files with 8 additions and 0 deletions

View file

@ -244,7 +244,11 @@ void FLAC__cpu_info(FLAC__CPUInfo *info)
struct sigaction sigill_save;
struct sigaction sigill_sse;
sigill_sse.sa_sigaction = sigill_handler_sse_os;
#ifdef __ANDROID__
sigemptyset (&sigill_sse.sa_mask);
#else
__sigemptyset(&sigill_sse.sa_mask);
#endif
sigill_sse.sa_flags = SA_SIGINFO | SA_RESETHAND; /* SA_RESETHAND just in case our SIGILL return jump breaks, so we don't get stuck in a loop */
if(0 == sigaction(SIGILL, &sigill_sse, &sigill_save))
{

View file

@ -42,6 +42,10 @@ namespace zlibNamespace
#endif
}
#if ! defined (jmp_buf) || ! defined (longjmp)
#include <setjmp.h>
#endif
namespace pnglibNamespace
{
using namespace zlibNamespace;