Skip to content

Commit

Permalink
Some cleanups for PocketPC port.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Nov 22, 2002
1 parent 83e2f1d commit 9d82110
Show file tree
Hide file tree
Showing 13 changed files with 9 additions and 20 deletions.
2 changes: 0 additions & 2 deletions archivers/dir.c
Expand Up @@ -13,8 +13,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#include "physfs.h"

#define __PHYSICSFS_INTERNAL__
Expand Down
3 changes: 0 additions & 3 deletions archivers/grp.c
Expand Up @@ -33,9 +33,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#include <assert.h>
#include "physfs.h"

#define __PHYSICSFS_INTERNAL__
Expand Down
3 changes: 0 additions & 3 deletions archivers/qpak.c
Expand Up @@ -16,9 +16,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#include <assert.h>
#include "physfs.h"

#define __PHYSICSFS_INTERNAL__
Expand Down
4 changes: 1 addition & 3 deletions archivers/zip.c
Expand Up @@ -16,10 +16,8 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <time.h>
#include <errno.h>

#include <time.h>
#include "physfs.h"
#include "zlib.h"

Expand Down
2 changes: 1 addition & 1 deletion configure.in
Expand Up @@ -436,7 +436,7 @@ fi

# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([stdlib.h string.h])
AC_CHECK_HEADERS([stdlib.h string.h assert.h])

# Checks for typedefs, structures, and compiler characteristics.
dnl AC_C_CONST
Expand Down
2 changes: 1 addition & 1 deletion makeos2.cmd
Expand Up @@ -7,7 +7,7 @@ rem Patches go to icculus@clutteredmind.org ...

set PHYSFSLANG=PHYSFS_LANG_ENGLISH
set DEBUGFLAGS=-D_NDEBUG -O2 -s
set CFLAGS=%DEBUGFLAGS% -Wall -Werror -Zomf -Zmt -Zmtd -I. -Izlib114 -c -D__ST_MT_ERRNO__ -DOS2 -DPHYSFS_SUPPORTS_ZIP -DPHYSFS_SUPPORTS_GRP -DPHYSFS_SUPPORTS_QPAK -DPHYSFS_LANG=%PHYSFSLANG%
set CFLAGS=%DEBUGFLAGS% -Wall -Werror -Zomf -Zmt -Zmtd -I. -Izlib114 -c -D__ST_MT_ERRNO__ -DOS2 -DPHYSFS_SUPPORTS_ZIP -DPHYSFS_SUPPORTS_GRP -DPHYSFS_SUPPORTS_QPAK -DPHYSFS_LANG=%PHYSFSLANG% -DHAVE_ASSERT_H=1

@echo on
mkdir bin
Expand Down
2 changes: 0 additions & 2 deletions physfs.c
Expand Up @@ -20,8 +20,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <errno.h>
#include "physfs.h"

#define __PHYSICSFS_INTERNAL__
Expand Down
1 change: 0 additions & 1 deletion physfs_byteorder.c
Expand Up @@ -14,7 +14,6 @@

#include <stdio.h>
#include <stdlib.h>
#include <assert.h>

#define __PHYSICSFS_INTERNAL__
#include "physfs_internal.h"
Expand Down
6 changes: 6 additions & 0 deletions physfs_internal.h
Expand Up @@ -16,6 +16,12 @@

#include "physfs.h"

#ifdef HAVE_ASSERT_H
#include <assert.h>
#else
#define assert(x)
#endif

#ifdef __cplusplus
extern "C" {
#endif
Expand Down
1 change: 0 additions & 1 deletion platform/beos.cpp
Expand Up @@ -26,7 +26,6 @@
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <assert.h>
#include <unistd.h>

#define __PHYSICSFS_INTERNAL__
Expand Down
1 change: 0 additions & 1 deletion platform/os2.c
Expand Up @@ -26,7 +26,6 @@
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <assert.h>
#include <time.h>
#include <ctype.h>

Expand Down
1 change: 0 additions & 1 deletion platform/posix.c
Expand Up @@ -43,7 +43,6 @@
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <assert.h>

#ifdef PHYSFS_HAVE_LLSEEK
#include <linux/unistd.h>
Expand Down
1 change: 0 additions & 1 deletion platform/win32.c
Expand Up @@ -19,7 +19,6 @@
#include <errno.h>
#include <ctype.h>
#include <time.h>
#include <assert.h>

#define __PHYSICSFS_INTERNAL__
#include "physfs_internal.h"
Expand Down

0 comments on commit 9d82110

Please sign in to comment.