Diff of /Include/pyport.h [278842] .. [5c26cf]  Maximize  Restore

Repo status: analyzing...

Switch to side-by-side view

--- a/Include/pyport.h
+++ b/Include/pyport.h
@@ -616,6 +616,17 @@
 #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
+/* Largest possible value of size_t.
+   SIZE_MAX is part of C99, so it might be defined on some
+   platforms. If it is not defined, (size_t)-1 is a portable
+   definition for C89, due to the way signed->unsigned 
+   conversion is defined. */
+#ifdef SIZE_MAX
+#define PY_SIZE_MAX ((size_t)-1)
 #ifdef __cplusplus

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks