My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions

Issue 106 attachment: 0001-Fix-redefinition-of-PY_SSIZE_T_MAX.patch (623 bytes)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From c74b6d3878d8e2d05d25bda6f7eb48871f55f102 Mon Sep 17 00:00:00 2001
From: Fahrzin Hemmati <fahhem@fahhem.com>
Date: Fri, 4 Mar 2011 04:52:40 -0800
Subject: [PATCH] Fix redefinition of PY_SSIZE_T_MAX

---
shedskin/lib/binascii.cpp | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/shedskin/lib/binascii.cpp b/shedskin/lib/binascii.cpp
index d58374d..627b5e0 100644
--- a/shedskin/lib/binascii.cpp
+++ b/shedskin/lib/binascii.cpp
@@ -13,7 +13,9 @@ __ss_bool default_2;
void * default_5;

// XXX
+#ifndef PY_SSIZE_T_MAX
#define PY_SSIZE_T_MAX INT_MAX
+#endif

/**
class Error
--
1.7.2.3

Powered by Google Project Hosting