Author: tkreuzer
Date: Sun Oct 10 15:58:09 2010
New Revision: 49098
URL:
http://svn.reactos.org/svn/reactos?rev=49098&view=rev
Log:
[WINEBUILD]
- add getpid() for MSC. Looks like some MSC versions don't have it in the msvcrt
import lib.
Added:
branches/cmake-bringup/tools/winebuild/getpid.c (with props)
Modified:
branches/cmake-bringup/tools/winebuild/CMakeLists.txt
Modified: branches/cmake-bringup/tools/winebuild/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/tools/winebuild/C…
==============================================================================
--- branches/cmake-bringup/tools/winebuild/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/tools/winebuild/CMakeLists.txt [iso-8859-1] Sun Oct 10 15:58:09
2010
@@ -18,7 +18,7 @@
add_definitions(-Dpopen=_popen)
endif()
if(MSVC)
- list(APPEND SOURCE getopt.c)
+ list(APPEND SOURCE getopt.c getpid.c)
include_directories(include)
endif()
Added: branches/cmake-bringup/tools/winebuild/getpid.c
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/tools/winebuild/g…
==============================================================================
--- branches/cmake-bringup/tools/winebuild/getpid.c (added)
+++ branches/cmake-bringup/tools/winebuild/getpid.c [iso-8859-1] Sun Oct 10 15:58:09 2010
@@ -1,0 +1,7 @@
+
+int __declspec(dllimport) __stdcall GetCurrentProcessId(void);
+
+int getpid(void)
+{
+ return GetCurrentProcessId();
+}
Propchange: branches/cmake-bringup/tools/winebuild/getpid.c
------------------------------------------------------------------------------
svn:eol-style = native