[pypy-svn] r22007 - pypy/dist/pypy/translator/c/src

ericvrp at codespeak.net ericvrp at codespeak.net
Thu Jan 12 10:50:10 CET 2006


Author: ericvrp
Date: Thu Jan 12 10:50:09 2006
New Revision: 22007

Modified:
   pypy/dist/pypy/translator/c/src/address.h
Log:
alloca is called _alloca on Windows (thanks Ben)


Modified: pypy/dist/pypy/translator/c/src/address.h
==============================================================================
--- pypy/dist/pypy/translator/c/src/address.h	(original)
+++ pypy/dist/pypy/translator/c/src/address.h	Thu Jan 12 10:50:09 2006
@@ -19,7 +19,11 @@
 #define OP_RAW_MALLOC(size,r,err)                                           \
     r = (void*) malloc(size);                                              \
     if (r == NULL) FAIL_EXCEPTION(err, PyExc_MemoryError, "out of memory");\
- 
+
+#ifdef MS_WINDOWS
+#define alloca  _alloca
+#endif
+
 #define OP_STACK_MALLOC(size,r,err)                                           \
     r = (void*) alloca(size);                                              \
     if (r == NULL) FAIL_EXCEPTION(err, PyExc_MemoryError, "out of memory");\



More information about the Pypy-commit mailing list