forked from enlightenment/efl
Evas: Remove lazy ifdef WIN32 and check for siglongjmp and sigaction availability
SVN revision: 63463
This commit is contained in:
parent
bfda6af5e5
commit
2d413eae60
|
@ -423,11 +423,12 @@ fi
|
|||
### Checks for header files
|
||||
AC_HEADER_STDC
|
||||
AC_CHECK_HEADERS([unistd.h stdint.h sys/param.h netinet/in.h])
|
||||
|
||||
EFL_CHECK_PATH_MAX
|
||||
|
||||
|
||||
### Checks for types
|
||||
AC_CHECK_TYPES([struct sigaction], [], [],
|
||||
[[#include <signal.h>]])
|
||||
|
||||
|
||||
### Checks for structures
|
||||
|
@ -473,6 +474,7 @@ AC_SUBST(lt_enable_auto_import)
|
|||
### Checks for library functions
|
||||
|
||||
AC_ISC_POSIX
|
||||
AC_CHECK_FUNCS([siglongjmp])
|
||||
|
||||
# alloca
|
||||
AC_FUNC_ALLOCA
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#include "evas_mmx.h"
|
||||
#endif
|
||||
|
||||
#ifndef _WIN32
|
||||
#if defined (HAVE_STRUCT_SIGACTION) && defined (HAVE_SIGLONGJMP)
|
||||
#include <signal.h>
|
||||
#include <setjmp.h>
|
||||
#include <errno.h>
|
||||
|
@ -13,7 +13,7 @@ static sigjmp_buf detect_buf;
|
|||
|
||||
static int cpu_feature_mask = 0;
|
||||
|
||||
#ifndef _WIN32
|
||||
#if defined (HAVE_STRUCT_SIGACTION) && defined (HAVE_SIGLONGJMP)
|
||||
static void evas_common_cpu_catch_ill(int sig);
|
||||
static void evas_common_cpu_catch_segv(int sig);
|
||||
|
||||
|
@ -99,7 +99,7 @@ evas_common_cpu_vis_test(void)
|
|||
int
|
||||
evas_common_cpu_feature_test(void (*feature)(void))
|
||||
{
|
||||
#ifndef _WIN32
|
||||
#if defined (HAVE_STRUCT_SIGACTION) && defined (HAVE_SIGLONGJMP)
|
||||
int enabled = 1;
|
||||
struct sigaction act, oact, oact2;
|
||||
|
||||
|
|
Loading…
Reference in New Issue