From 1f402946a20a4024310b0b578973b69cf17d8db5 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Sun, 7 Apr 2019 14:14:55 +0100 Subject: [PATCH] tests - fix check header to always include eina due to windows windows means HAVE_FORK is false... thus missing eina.h and now we have macros that use eina calls always... so this fixes nbuild of tests on windows @fix --- src/tests/efl_check.h | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/src/tests/efl_check.h b/src/tests/efl_check.h index e4f3e7a202..f7a62d96cf 100644 --- a/src/tests/efl_check.h +++ b/src/tests/efl_check.h @@ -13,28 +13,29 @@ #include #ifdef HAVE_FORK -#ifdef HAVE_SYS_TYPES_H -# include +# ifdef HAVE_SYS_TYPES_H +# include +# endif +# ifdef HAVE_SYS_WAIT_H +# include +# endif +# include #endif -#ifdef HAVE_SYS_WAIT_H -# include -#endif -#include + #include -#endif #ifndef EINA_UNUSED -#ifdef __GNUC__ +# ifdef __GNUC__ -# if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1) -# define EINA_UNUSED __attribute__ ((__unused__)) +# if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1) +# define EINA_UNUSED __attribute__ ((__unused__)) +# else +# define EINA_UNUSED +# endif # else # define EINA_UNUSED # endif -#else -# define EINA_UNUSED -#endif #endif