My Environment:
OS: Windows Vista Home Basic Ru + sp2
Compiler: Mingw32 gcc (GCC) 4.4.0
Linker: GNU ld (GNU Binutils) 2.20
__MINGW32_VERSION 3.18
__W32API_VERSION 3.14
KInterbasDB 3.3.0
SVN Revision: 1088
SVN URL: http://firebird.svn.sourceforge.net/svnroot/firebird/kinterbasdb/trunk
Version 3.3.0
Log for build:
...
In file included from _kiconversion.c:81,
from _kinterbasdb.c:235:
_kiconversion_blob_streaming.c: In function 'conv_in_blob_from_pyfilelike':
_kiconversion_blob_streaming.c:816: warning: unknown conversion type character 'z' in format
_kiconversion_blob_streaming.c:816: warning: too many arguments for format
In file included from _kinterbasdb.c:245:
_kicore_connection.c: In function 'pyob_Connection_connect':
_kicore_connection.c:1175: warning: unknown conversion type character 'z' in format
_kicore_connection.c:1175: warning: too many arguments for format
_kicore_connection.c:1188: warning: unknown conversion type character 'z' in format
_kicore_connection.c:1188: warning: too many arguments for format
In file included from _kinterbasdb.c:249:
_kicore_cursor.c: In function 'pyob_Cursor_arraysize_set':
_kicore_cursor.c:1876: warning: unknown conversion type character 'z' in format
_kicore_cursor.c:1876: warning: too many arguments for format
...
Pach for correct:
Index: _kinterbasdb.h
===================================================================
--- _kinterbasdb.h (revision 1088)
+++ _kinterbasdb.h (working copy)
@@ -166,7 +166,11 @@
#define PyInt_FromSsize_t PyInt_FromLong
#define PyInt_AsSsize_t PyInt_AsLong
#else
- #define Py_ssize_t_STRING_FORMAT "%zd"
+ #ifndef PLATFORM_WINDOWS
+ #define Py_ssize_t_STRING_FORMAT "%zd"
+ #else
+ #define Py_ssize_t_STRING_FORMAT "%Id"
+ #endif
#define Py_ssize_t_EXTRACTION_CODE "n"
#endif
#define SIZE_T_TO_PYTHON_SIZE(x) ((Py_ssize_t)(x))
Pach for correct