Make __ecl_inf and __ecl_nan static to prevent link-time conflicts

while building with Microsoft Visual Studio 2010.
This commit is contained in:
Vadim Penzin 2016-09-20 12:59:56 +03:00
parent 11e35ea5b9
commit 68962f1455

View file

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