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
This commit is contained in:
Vincent Torri 2016-06-13 21:44:10 +02:00 committed by Jean-Philippe Andre
parent a7b012ae05
commit 8cccde76fe
3 changed files with 8 additions and 7 deletions

View File

@ -1750,6 +1750,7 @@ sys/prctl.h \
sys/resource.h \
sys/timerfd.h \
sys/un.h \
ieeefp.h \
],[],[],
[
#ifdef HAVE_SYS_SOCKET_H

View File

@ -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

View File

@ -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