platform/unix.c
changeset 310 f8bca4a93fd5
parent 273 9451eff9f495
child 316 29a4d12d1dc6
equal deleted inserted replaced
309:a8615a87be0a 310:f8bca4a93fd5
     9 #if HAVE_CONFIG_H
     9 #if HAVE_CONFIG_H
    10 #  include <config.h>
    10 #  include <config.h>
    11 #endif
    11 #endif
    12 
    12 
    13 #if (!defined __BEOS__) /* BeOS uses beos.cpp and posix.c ... */
    13 #if (!defined __BEOS__) /* BeOS uses beos.cpp and posix.c ... */
       
    14 
       
    15 #if (defined WIN32) /* cygwin/mingw32? */
       
    16 #include "win32.c"  /* !!! FIXME: holy friggin' hack. */
       
    17 #else
    14 
    18 
    15 #if ((defined __APPLE__) && (defined __MACH__))
    19 #if ((defined __APPLE__) && (defined __MACH__))
    16 #  if (!defined __DARWIN__)
    20 #  if (!defined __DARWIN__)
    17 #    define __DARWIN__
    21 #    define __DARWIN__
    18 #  endif
    22 #  endif
   300 void __PHYSFS_platformReleaseMutex(void *mutex)
   304 void __PHYSFS_platformReleaseMutex(void *mutex)
   301 {
   305 {
   302     pthread_mutex_unlock((pthread_mutex_t *) mutex);
   306     pthread_mutex_unlock((pthread_mutex_t *) mutex);
   303 } /* __PHYSFS_platformReleaseMutex */
   307 } /* __PHYSFS_platformReleaseMutex */
   304 
   308 
       
   309 #endif /* win32 check. */
       
   310 
   305 #endif /* !defined __BEOS__ */
   311 #endif /* !defined __BEOS__ */
   306 
   312 
   307 /* end of unix.c ... */
   313 /* end of unix.c ... */
   308 
   314