Skip to content
Permalink
Browse files
Build system corrections for BeOS and Cygwin.
  • Loading branch information
icculus committed Jul 10, 2002
1 parent 5fd4530 commit 99a03b9452f8119723716aa42c29c5c6e637f7ec
Showing with 8 additions and 7 deletions.
  1. +2 −1 platform/Makefile.am
  2. +0 −1 platform/beos.cpp
  3. +2 −5 platform/unix.c
  4. +4 −0 platform/win32.c
@@ -4,12 +4,12 @@ INCLUDES = -I$(top_srcdir)

if BUILD_BEOS
libplatform_la_SOURCES = \
unix.c \
posix.c \
beos.cpp
else
libplatform_la_SOURCES = \
unix.c \
win32.c \
posix.c
endif

@@ -18,5 +18,6 @@ EXTRA_DIST = \
skeleton.c \
macclassic.c \
win32.c \
unix.c \
beos.cpp

@@ -35,7 +35,6 @@

const char *__PHYSFS_platformDirSeparator = "/";

/* !!! FIXME: does strerror() work for non-POSIX api calls? */
#define get_error_str(x) strerror(x)


@@ -10,11 +10,8 @@
# include <config.h>
#endif

#if (!defined __BEOS__) /* BeOS uses beos.cpp and posix.c ... */

#if (defined WIN32) /* cygwin/mingw32? */
#include "win32.c" /* !!! FIXME: holy friggin' hack. */
#else
/* BeOS uses beos.cpp and posix.c ... Cygwin and such use win32.c ... */
#if ((!defined __BEOS__) && (!defined WIN32))

#if ((defined __APPLE__) && (defined __MACH__))
# if (!defined __DARWIN__)
@@ -10,6 +10,8 @@
# include <config.h>
#endif

#ifdef WIN32

#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
@@ -1083,5 +1085,7 @@ PHYSFS_sint64 __PHYSFS_platformGetLastModTime(const char *fname)
return(retval);
} /* __PHYSFS_platformGetLastModTime */

#endif

/* end of win32.c ... */

0 comments on commit 99a03b9

Please sign in to comment.