jpeg pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=8cccde76fe64c4752f036f51cfb0fd26c1ffae9f
commit 8cccde76fe64c4752f036f51cfb0fd26c1ffae9f Author: Vincent Torri <[email protected]> Date: Mon Jun 13 21:44:10 2016 +0200 Ecore: detect ieeefp.h existence instead of including it with compiler's macro On Solaris, this header is necessary for finite(). Instead of including it if the sun compiler is used, include it if it exists. This fixes a warning if gcc is used on Solaris --- configure.ac | 1 + src/lib/ecore/ecore_main.c | 10 +++++----- src/lib/ecore/ecore_pipe.c | 4 ++-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/configure.ac b/configure.ac index fc715e5..1a74887 100644 --- a/configure.ac +++ b/configure.ac @@ -1750,6 +1750,7 @@ sys/prctl.h \ sys/resource.h \ sys/timerfd.h \ sys/un.h \ +ieeefp.h \ ],[],[], [ #ifdef HAVE_SYS_SOCKET_H diff --git a/src/lib/ecore/ecore_main.c b/src/lib/ecore/ecore_main.c index 5a011a4..0ee0eb6 100644 --- a/src/lib/ecore/ecore_main.c +++ b/src/lib/ecore/ecore_main.c @@ -11,13 +11,9 @@ # endif #endif -#ifdef __SUNPRO_C -# include <ieeefp.h> -# include <string.h> -#endif - #include <stdlib.h> #include <stdio.h> +#include <string.h> #include <unistd.h> #include <math.h> #include <sys/types.h> @@ -29,6 +25,10 @@ # include <systemd/sd-daemon.h> #endif +#ifdef HAVE_IEEEFP_H +# include <ieeefp.h> /* for Solaris */ +#endif + #ifdef _MSC_VER # include <float.h> #endif diff --git a/src/lib/ecore/ecore_pipe.c b/src/lib/ecore/ecore_pipe.c index 94319b6..7ac6964 100644 --- a/src/lib/ecore/ecore_pipe.c +++ b/src/lib/ecore/ecore_pipe.c @@ -7,8 +7,8 @@ #include <errno.h> #include <math.h> -#ifdef __SUNPRO_C -# include <ieeefp.h> +#ifdef HAVE_IEEEFP_H +# include <ieeefp.h> /* for Solaris */ #endif #ifdef HAVE_ISFINITE --
