From 0159a149948663a73f0c3cd7aa10be553c93182e Mon Sep 17 00:00:00 2001 From: Stefan Schmidt Date: Thu, 14 Feb 2019 10:40:13 +0100 Subject: [PATCH] tests: guard eina bool variable to avoid compilation failure on windows The timeout_reached bool is only used in this function when HAVE_FORK is available. This is not the case on windows. Eina.h would only be included with fork available so the Eina_Bool type causes a compilation fail on windows. Guarding them as the other parts of the function using it solves the problem. Reviewed-by: Vincent Torri Differential Revision: https://phab.enlightenment.org/D7947 --- src/tests/efl_check.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tests/efl_check.h b/src/tests/efl_check.h index 81fa184..d5b0d2f 100644 --- a/src/tests/efl_check.h +++ b/src/tests/efl_check.h @@ -287,7 +287,9 @@ _efl_suite_build_and_run(int argc, const char **argv, const char *suite_name, co int do_fork; int num_forks = 0; int can_fork = 0; +#ifdef HAVE_FORK Eina_Bool timeout_reached = EINA_FALSE; +#endif #ifdef ENABLE_TIMING_INFO double tstart = 0.0, tcstart = 0.0; int timing = _timing_enabled(); -- 2.7.4