Update of /cvsroot/ctypes/ctypes/source
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5708
Modified Files:
_ctypes.c
Log Message:
Include <malloc.h>, for compatibility with mingw.
Index: _ctypes.c
===================================================================
RCS file: /cvsroot/ctypes/ctypes/source/_ctypes.c,v
retrieving revision 1.313
retrieving revision 1.314
diff -C2 -d -r1.313 -r1.314
*** _ctypes.c 17 Mar 2006 15:13:18 -0000 1.313
--- _ctypes.c 17 Mar 2006 21:02:01 -0000 1.314
***************
*** 106,109 ****
--- 106,110 ----
#ifdef MS_WIN32
#include <windows.h>
+ #include <malloc.h>
# ifdef _WIN32_WCE
/* Unlike desktop Windows, WinCE has both W and A variants of
***************
*** 2402,2406 ****
where n is 0, 4, 8, 12, ..., 128
*/
! mangled_name = _alloca(strlen(name) + 1 + 1 + 1 + 3); /* \0 _ @ %d */
for (i = 0; i < 32; ++i) {
sprintf(mangled_name, "_%s@%d", name, i*4);
--- 2403,2407 ----
where n is 0, 4, 8, 12, ..., 128
*/
! mangled_name = alloca(strlen(name) + 1 + 1 + 1 + 3); /* \0 _ @ %d */
for (i = 0; i < 32; ++i) {
sprintf(mangled_name, "_%s@%d", name, i*4);
|