diff options
author | Siarhei Siamashka <siarhei.siamashka@gmail.com> | 2012-12-20 05:00:46 +0200 |
---|---|---|
committer | Siarhei Siamashka <siarhei.siamashka@gmail.com> | 2012-12-20 05:00:46 +0200 |
commit | 9c90e4ed1b89f6a6bb289c1d2e0d96bd09cf04e2 (patch) | |
tree | 1bf11919c1af3da52537b1697e5186018615d687 | |
parent | e31daf292e7cd9684528281b2034774b9d550569 (diff) |
Define SIZE_MAX if it is not provided by the standard C headers
C++ compilers do not define SIZE_MAX. It is also not available
if the code is compiled by some C compilers:
http://lists.freedesktop.org/archives/pixman/2012-August/002196.html
-rw-r--r-- | pixman/pixman-compiler.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pixman/pixman-compiler.h b/pixman/pixman-compiler.h index a978acc..2e45dea 100644 --- a/pixman/pixman-compiler.h +++ b/pixman/pixman-compiler.h @@ -56,6 +56,10 @@ # define INT64_MAX (9223372036854775807) #endif +#ifndef SIZE_MAX +# define SIZE_MAX ((size_t)-1) +#endif + #ifndef M_PI # define M_PI 3.14159265358979323846 |