Wireshark-bugs: [Wireshark-bugs] [Bug 3500] Add Python embedding to Windows makefiles
Date: Wed, 15 Jun 2011 19:39:40 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3500

--- Comment #25 from Michael Mann <[email protected]> 2011-06-15 19:39:36 PDT ---
(In reply to comment #21)
> The 64-bit build issue could be due to a Python header wiring in UN*X-style
> LP64 assumptions that collide with Windows' LLP64 assumptions, e.g. one of them
> defining ssize_t as a 32-bit-on-64-bit-Windows "long int" and another defining
> it as "long long int" or "_I64" or whatever the MSVC++ 64-bit integral type is.

The issue appears to be that \wireshark\config.h defines 
typedef int ssize_t;

And pyconfig.h defines
#ifdef MS_WIN64
typedef __int64 ssize_t;
#else
typedef __W64 ssize_t;
#endif


It appears that pyconfig.h is more flexible, but \wireshark\config.h is
autogenerated.  Is it as simple as modifying the generator of
\wireshark\config.h to include something similar to pyconfig.h?  Or just
generate 
typedef __int64 ssize_t;

if the build is "win64" and

typedef __W64 ssize_t; (or typedef int ssize_t;)

if the build is "win32"

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.