From 566b6229c9cfdbc605817ad1cae53c25b5062acc Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sat, 6 Apr 2002 21:05:14 +0000 Subject: [PATCH] Darwin fixes. --- platform/unix.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/platform/unix.c b/platform/unix.c index fd0a745c..027600f7 100644 --- a/platform/unix.c +++ b/platform/unix.c @@ -45,13 +45,16 @@ #include #include #include -#include -#include -#if (defined __DARWIN__) +#if (!defined __DARWIN__) +#include +#else #include #endif +#include + + #define __PHYSICSFS_INTERNAL__ #include "physfs_internal.h" @@ -288,7 +291,7 @@ char *__PHYSFS_platformGetUserDir(void) PHYSFS_uint64 __PHYSFS_platformGetThreadID(void) { - return((PHYSFS_uint64) pthread_self()); + return((PHYSFS_uint64) ((PHYSFS_uint32) pthread_self())); } /* __PHYSFS_platformGetThreadID */