From: SourceForge.net <no...@so...> - 2008-04-24 23:13:51
|
Patches item #1951202, was opened at 2008-04-25 11:12 Message generated for change (Settings changed) made by dannysmith You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=302435&aid=1951202&group_id=2435 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. >Category: runtime Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Danny Smith (dannysmith) >Assigned to: Chris Sutcliffe (ir0nh34d) Summary: Make exec and spawn function prototypes 32/64 bit neutral Initial Comment: With MS compiler exec* and spawn* functions return intptr_t rather than int. (see eg http://msdn2.microsoft.com/en-us/library/xwy0k9bb(VS.71).aspx) This facilitates Win32-Win64 compatibility. Here, in the spirit of mingw32-mingw64 compatibility,is a patch to do the same on mingw. 2008-04-25 Danny Smith <dan...@us...> * include/process.h: Include stdint.h for intptr_t definition. (_execl, _execle, _execlp, _execlpe, _execv, _execve, _execvp, _execvpe, _spawnl, _spawnle, _spawnlp, _spawnlpe, _spawnv, _spawnve, _spawnvp, _spawnvpe): Return intptr_t. (execl, execle, execlp, execlpe, execv, execve, execvp, execvpe, spawnl, spawnle, spawnlp, spawnlpe, spawnv, spawnve, spawnvp, spawnvpe): Return intptr_t. * include/wchar.h: Guard wide process.h functions with !__STRICT_ANSI__. [!_WPROCESS_DEFINED]: Include stdint.h for intptr_t definition. (_wexecl, _wexecle, _wexeclp, _wexeclpe, _wexecv, _wexecve, _wexecvp, _wexecvpe, _wspawnl, _wspawnle, _wspawnlp, _wspawnlpe, _wspawnv, _wspawnve, _wspawnvp, _wspawnvpe): Return intptr_t. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=302435&aid=1951202&group_id=2435 |