summaryrefslogtreecommitdiff
path: root/src/lib/eina
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-02-28 16:24:05 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-02-28 16:25:18 +0900
commit1974f5d511bbfd3679151b01dfdd38892606b0e7 (patch)
tree629bfe08ac26b3839a2e8480bb9d3ab2cb8f5c13 /src/lib/eina
parent1cbd32aca1e895bccef333398f8b23d6d41d845a (diff)
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/eina')
-rw-r--r--src/lib/eina/eina_value.c2
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;
80static const int64_t eina_value_int64_max = 9223372036854775807LL; 80static const int64_t eina_value_int64_max = 9223372036854775807LL;
81static const int64_t eina_value_int64_min = -9223372036854775807LL - 1LL; 81static const int64_t eina_value_int64_min = -9223372036854775807LL - 1LL;
82 82
83#if __WORDSIZE == 64 83#if !defined (_WIN32) && (__WORDSIZE == 64)
84static const unsigned long eina_value_ulong_max = 18446744073709551615ULL; 84static const unsigned long eina_value_ulong_max = 18446744073709551615ULL;
85static const long eina_value_long_max = 9223372036854775807LL; 85static const long eina_value_long_max = 9223372036854775807LL;
86static const long eina_value_long_min = -9223372036854775807LL - 1LL; 86static const long eina_value_long_min = -9223372036854775807LL - 1LL;