diff options
author | Luke Alonso <lalonso@twitter.com> | 2016-03-25 04:43:13 +0300 |
---|---|---|
committer | Pavan Yalamanchili <pyalamanchili@twitter.com> | 2017-05-26 01:41:52 +0300 |
commit | edb89bf66fe6a2c511d735ac77fd89e39931bec3 (patch) | |
tree | 7dc6c99316e7f7cbb74d67e5bd52e06115272170 /lib | |
parent | 4150c664c980e03a29eaad685e1d860f92888c00 (diff) |
lua 5.3 changes and gcc constants
Diffstat (limited to 'lib')
-rw-r--r-- | lib/TH/THDiskFile.c | 3 | ||||
-rw-r--r-- | lib/TH/generic/THTensorMath.c | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/lib/TH/THDiskFile.c b/lib/TH/THDiskFile.c index 01b1951..3f57b3b 100644 --- a/lib/TH/THDiskFile.c +++ b/lib/TH/THDiskFile.c @@ -3,6 +3,9 @@ #include "THFilePrivate.h" #include <stdint.h> +#ifndef LLONG_MAX +#define LLONG_MAX 9223372036854775807LL +#endif typedef struct THDiskFile__ { 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 |