Revision: 484 http://rpy.svn.sourceforge.net/rpy/?rev=484&view=rev Author: warnes Date: 2008-04-10 06:45:34 -0700 (Thu, 10 Apr 2008)
Log Message: ----------- Correct the handling of CStackLimit code. Modified Paths: -------------- trunk/rpy/src/rpymodule.c Modified: trunk/rpy/src/rpymodule.c =================================================================== --- trunk/rpy/src/rpymodule.c 2008-04-09 20:48:38 UTC (rev 483) +++ trunk/rpy/src/rpymodule.c 2008-04-10 13:45:34 UTC (rev 484) @@ -39,7 +39,15 @@ * * ***** END LICENSE BLOCK ***** */ -#define CSTACK_DEFNS +#include <Rversion.h> +#if (R_VERSION >= R_Version(2,3,0)) + +# ifndef _WIN32 +# define CSTACK_DEFNS // Enable definitions needed for stack checking control +# endif + +#endif + #include "RPy.h" #define NONAMELESSUNION @@ -2014,7 +2022,7 @@ #endif -#ifndef CSTACK_DEFNS +#ifdef CSTACK_DEFNS /* Disable C stack checking, which is incompatible with use as a shared library. */ R_CStackLimit = (uintptr_t)-1; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list