Fixing linux compilation problems.
This commit is contained in:
Родитель
9f85e4554a
Коммит
bf396c3b40
|
@ -7,7 +7,7 @@
|
|||
#define _CRT_SECURE_NO_WARNINGS // "secure" CRT not available on all platforms --add this at the top of all CPP files that give "function or variable may be unsafe" warnings
|
||||
#define _CRT_NONSTDC_NO_DEPRECATE // make VS accept POSIX functions without _
|
||||
#pragma warning (disable: 4996) // ^^ this does not seem to work--TODO: make it work
|
||||
#define _FILE_OFFSET_BITS = 64 // for ftell64() in Linux
|
||||
#define _FILE_OFFSET_BITS 64 // for ftell64() in Linux
|
||||
|
||||
#ifndef UNDER_CE // fixed-buffer overloads not available for wince
|
||||
#ifdef _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES // fixed-buffer overloads for strcpy() etc.
|
||||
|
|
|
@ -3916,7 +3916,7 @@ namespace Microsoft { namespace MSR { namespace CNTK {
|
|||
|
||||
foreach_coord (i, j, us)
|
||||
// if (isnan (us(i,j)))
|
||||
if (isnan (us(i,j)))
|
||||
if (::isnan (us(i,j)))
|
||||
{
|
||||
fprintf (stderr, "hasnan: NaN detected at %s (%ld,%ld)\n", name, i, j);
|
||||
return true;
|
||||
|
@ -3936,7 +3936,7 @@ namespace Microsoft { namespace MSR { namespace CNTK {
|
|||
foreach_coord (i, j, us)
|
||||
{
|
||||
auto val = us(i,j);
|
||||
if (isnan (val) || !isfinite (val))
|
||||
if (::isnan (val) || !isfinite (val))
|
||||
n++;
|
||||
}
|
||||
return n;
|
||||
|
|
Загрузка…
Ссылка в новой задаче