diff options
author | Jean-Philippe Andre <jp.andre@samsung.com> | 2017-02-28 16:24:05 +0900 |
---|---|---|
committer | Jean-Philippe Andre <jp.andre@samsung.com> | 2017-02-28 16:25:18 +0900 |
commit | 1974f5d511bbfd3679151b01dfdd38892606b0e7 (patch) | |
tree | 629bfe08ac26b3839a2e8480bb9d3ab2cb8f5c13 /src/lib | |
parent | 1cbd32aca1e895bccef333398f8b23d6d41d845a (diff) | |
download | efl-1974f5d511bbfd3679151b01dfdd38892606b0e7.tar.gz |
eina_value: Fix min/max values of long for Windows
long is 32 bit on Windows (both 32, 64 bit).
I wonder why eina_value doesn't simply use LONG_MIN/MAX O_o
Fixes T5204
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/eina/eina_value.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eina/eina_value.c b/src/lib/eina/eina_value.c index 51b906a6e0..3d8dce8039 100644 --- a/src/lib/eina/eina_value.c +++ b/src/lib/eina/eina_value.c @@ -80,7 +80,7 @@ static const uint64_t eina_value_uint64_max = 18446744073709551615ULL; static const int64_t eina_value_int64_max = 9223372036854775807LL; static const int64_t eina_value_int64_min = -9223372036854775807LL - 1LL; -#if __WORDSIZE == 64 +#if !defined (_WIN32) && (__WORDSIZE == 64) static const unsigned long eina_value_ulong_max = 18446744073709551615ULL; static const long eina_value_long_max = 9223372036854775807LL; static const long eina_value_long_min = -9223372036854775807LL - 1LL; |