a few more porting fixes
authorSteven Edwards <winehacker@gmail.com>
Wed, 30 Nov 2005 08:01:56 +0000 (08:01 +0000)
committerSteven Edwards <winehacker@gmail.com>
Wed, 30 Nov 2005 08:01:56 +0000 (08:01 +0000)
svn path=/trunk/; revision=19772

reactos/lib/crt/include/internal/file.h
reactos/lib/crt/process/threadid.c

index de562e3..1205a94 100644 (file)
@@ -148,6 +148,9 @@ int _isinf(double x);
 #define  _IORW 0x0080 /* opened as "r+w" */
 #endif
 
 #define  _IORW 0x0080 /* opened as "r+w" */
 #endif
 
+#ifndef F_OK
+#define        F_OK    0       /* Check for file existence */
+#endif
 #ifndef W_OK
 #define        W_OK    2       /* Check for write permission */
 #endif
 #ifndef W_OK
 #define        W_OK    2       /* Check for write permission */
 #endif
index fb80962..50ab633 100644 (file)
@@ -13,7 +13,7 @@ unsigned long __threadid (void)
 /*
  * @implemented
  */
 /*
  * @implemented
  */
-void *__threadhandle(void)
+uintptr_t __threadhandle()
 {
 {
-   return GetCurrentThread();
+   return (uintptr_t)GetCurrentThread();
 }
 }