Skip to content

Commit

Permalink
Build system corrections for BeOS and Cygwin.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jul 10, 2002
1 parent 5fd4530 commit 99a03b9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion platform/Makefile.am
Expand Up @@ -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

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

1 change: 0 additions & 1 deletion platform/beos.cpp
Expand Up @@ -35,7 +35,6 @@

const char *__PHYSFS_platformDirSeparator = "/";

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


Expand Down
7 changes: 2 additions & 5 deletions platform/unix.c
Expand Up @@ -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__)
Expand Down
4 changes: 4 additions & 0 deletions platform/win32.c
Expand Up @@ -10,6 +10,8 @@
# include <config.h>
#endif

#ifdef WIN32

#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down Expand Up @@ -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.