Re: [python-win32] pyconfig.h: conflicting definitions for ssize_t

2011-03-30 Thread Mark Hammond

On 30/03/2011 11:01 AM, Tim Roberts wrote:

Wolfgang Rohdewald wrote:
I agree with your conclusion.  However, this isn't a Python-Win32
issue.  You need to file a bug report against Python itself.


it would be good to know exactly what vs2008 says about this - if it 
uses 'int' we will need to take more care - but yeah - please report 
this at bugs.python.org, add mhammond to the nosy list and I'll help 
ensure it gets fixed...


Cheers,

Mark

___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32


Re: [python-win32] pyconfig.h: conflicting definitions for ssize_t

2011-03-30 Thread Wolfgang Rohdewald
On Mittwoch 30 März 2011, Mark Hammond wrote:
 On 30/03/2011 11:01 AM, Tim Roberts wrote:
  Wolfgang Rohdewald wrote:
  I agree with your conclusion.  However, this isn't a
  Python-Win32 issue.  You need to file a bug report against
  Python itself.
 
 it would be good to know exactly what vs2008 says about this -

I am afraid I don't have vs2008 and I don't really want to 
put it on a machine where vs2010 is already running.

 if it uses 'int' we will need to take more care - but yeah -
 please report this at bugs.python.org

http://bugs.python.org/issue11717
there are already a few comments

 add mhammond to the nosy list

done

 and I'll help ensure it gets fixed...

that would be great!

-- 
Wolfgang
___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32


[python-win32] pyconfig.h: conflicting definitions for ssize_t

2011-03-29 Thread Wolfgang Rohdewald
compiling pykde on windows with msvc2010 on a 32bit Windows 7:

sipdnssdpart0.cpp
R:\include\msvc\sys/types.h(52) : error C2371: 'ssize_t' : redefinition; 
different basic types
c:\python27\include\pyconfig.h(201) : see declaration of 'ssize_t'

I can fix this by defining ssize_t as long in pyconfig.h or 
as int in kdewin/include/msvc/sys/types.h

the original files from windows define SSIZE_T as long so to
me this seems like a bug in pyconfig.h, it should say
typedef _W64 long ssize_t


Python27\include\pyconfig.h says (same in Python32):

#ifdef MS_WIN64
typedef __int64 ssize_t;
#else
typedef _W64 int ssize_t;
#endif

while kdewin/include/msvc/sys/types.h says:

typedef SSIZE_T ssize_t;

SSIZE_T is defined in Microsoft SDKs/Windows/v7.0A/Include/BaseTsd.h:

typedef LONG_PTR SSIZE_T, *PSSIZE_T;

and LONG_PTR from same directory, intsafe.h:
#if (__midl  501)
typedef [public]  __int3264 LONG_PTR;
#else
#ifdef _WIN64
typedef __int64 LONG_PTR;
#else
typedef _W64 long   LONG_PTR;
#endif // WIN64
#endif // (__midl  501)

for __midl see
http://msdn.microsoft.com/en-us/library/aa367301(v=vs.85).aspx

-- 
Wolfgang
___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32


Re: [python-win32] pyconfig.h: conflicting definitions for ssize_t

2011-03-29 Thread Tim Roberts
Wolfgang Rohdewald wrote:
 compiling pykde on windows with msvc2010 on a 32bit Windows 7:

 sipdnssdpart0.cpp
 R:\include\msvc\sys/types.h(52) : error C2371: 'ssize_t' : redefinition; 
 different basic types
 c:\python27\include\pyconfig.h(201) : see declaration of 'ssize_t'

 I can fix this by defining ssize_t as long in pyconfig.h or 
 as int in kdewin/include/msvc/sys/types.h

 the original files from windows define SSIZE_T as long so to
 me this seems like a bug in pyconfig.h, it should say
 typedef _W64 long ssize_t


 Python27\include\pyconfig.h says (same in Python32):

 #ifdef MS_WIN64
 typedef __int64 ssize_t;
 #else
 typedef _W64 int ssize_t;
 #endif

 while kdewin/include/msvc/sys/types.h says:

 typedef SSIZE_T ssize_t;

I agree with your conclusion.  However, this isn't a Python-Win32
issue.  You need to file a bug report against Python itself.

-- 
Tim Roberts, t...@probo.com
Providenza  Boekelheide, Inc.

___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32


Re: [python-win32] pyconfig.h: conflicting definitions for ssize_t

2011-03-29 Thread Wolfgang Rohdewald
On Mittwoch 30 März 2011, Tim Roberts wrote:
 Wolfgang Rohdewald wrote:
  compiling pykde on windows with msvc2010 on a 32bit Windows
  7:
  
  sipdnssdpart0.cpp
  R:\include\msvc\sys/types.h(52) : error C2371: 'ssize_t' :
  redefinition; different basic types
  
  c:\python27\include\pyconfig.h(201) : see
  declaration of 'ssize_t'
  
  I can fix this by defining ssize_t as long in pyconfig.h or
  as int in kdewin/include/msvc/sys/types.h
  
  the original files from windows define SSIZE_T as long so to
  me this seems like a bug in pyconfig.h, it should say
  typedef _W64 long ssize_t
  
  
  Python27\include\pyconfig.h says (same in Python32):
  
  #ifdef MS_WIN64
  typedef __int64 ssize_t;
  #else
  typedef _W64 int ssize_t;
  #endif
  
  while kdewin/include/msvc/sys/types.h says:
  
  typedef SSIZE_T ssize_t;
 
 I agree with your conclusion.  However, this isn't a
 Python-Win32 issue.  You need to file a bug report against
 Python itself.

done: http://bugs.python.org/issue11717

-- 
Wolfgang
___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32