From 68962f1455f2e63b10151f786363f0d980d4bc46 Mon Sep 17 00:00:00 2001 From: Vadim Penzin Date: Tue, 20 Sep 2016 12:59:56 +0300 Subject: [PATCH] Make __ecl_inf and __ecl_nan static to prevent link-time conflicts while building with Microsoft Visual Studio 2010. --- src/h/internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/h/internal.h b/src/h/internal.h index 6bf8792c3..d64253bac 100755 --- a/src/h/internal.h +++ b/src/h/internal.h @@ -598,7 +598,7 @@ extern cl_object si_wait_for_all_processes _ECL_ARGS((cl_narg narg, ...)); #ifndef INFINITY # if _MSC_VER == 1600 -union { +static union { uint8_t bytes [ sizeof ( float ) ]; float inf; } __ecl_inf = { @@ -612,7 +612,7 @@ union { #ifndef NAN # if _MSC_VER == 1600 -union { +static union { uint8_t bytes [ sizeof ( float ) ]; float nan; } __ecl_nan = {