diff options
Diffstat (limited to 'lib/TH/generic/THTensorMath.c')
-rw-r--r-- | lib/TH/generic/THTensorMath.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/TH/generic/THTensorMath.c b/lib/TH/generic/THTensorMath.c index 706b1d0..29894e2 100644 --- a/lib/TH/generic/THTensorMath.c +++ b/lib/TH/generic/THTensorMath.c @@ -2,6 +2,10 @@ #define TH_GENERIC_FILE "generic/THTensorMath.c" #else +#ifndef NAN + #define NAN (nan(NULL)) +#endif + #ifdef _OPENMP #include <omp.h> #endif |