diff --git a/src/archiver_dir.c b/src/archiver_dir.c index 0301c3f..5ad3923 100644 --- a/src/archiver_dir.c +++ b/src/archiver_dir.c @@ -6,11 +6,6 @@ * This file written by Ryan C. Gordon. */ -#include -#include -#include -#include "physfs.h" - #define __PHYSICSFS_INTERNAL__ #include "physfs_internal.h" diff --git a/src/archiver_grp.c b/src/archiver_grp.c index 6c0cf9c..fc5fcf8 100644 --- a/src/archiver_grp.c +++ b/src/archiver_grp.c @@ -26,11 +26,6 @@ #if (defined PHYSFS_SUPPORTS_GRP) -#include -#include -#include -#include "physfs.h" - #define __PHYSICSFS_INTERNAL__ #include "physfs_internal.h" diff --git a/src/archiver_hog.c b/src/archiver_hog.c index 49b297c..8f21854 100644 --- a/src/archiver_hog.c +++ b/src/archiver_hog.c @@ -31,11 +31,6 @@ #if (defined PHYSFS_SUPPORTS_HOG) -#include -#include -#include -#include "physfs.h" - #define __PHYSICSFS_INTERNAL__ #include "physfs_internal.h" diff --git a/src/archiver_iso9660.c b/src/archiver_iso9660.c index ac10258..68156e3 100644 --- a/src/archiver_iso9660.c +++ b/src/archiver_iso9660.c @@ -29,8 +29,6 @@ #define __PHYSICSFS_INTERNAL__ #include "physfs_internal.h" -#include -#include #include /* cache files smaller than this completely in memory */ diff --git a/src/archiver_lzma.c b/src/archiver_lzma.c index b824b3e..18197b4 100644 --- a/src/archiver_lzma.c +++ b/src/archiver_lzma.c @@ -9,12 +9,6 @@ #if (defined PHYSFS_SUPPORTS_7Z) -#include -#include -#include - -#include "physfs.h" - #define __PHYSICSFS_INTERNAL__ #include "physfs_internal.h" diff --git a/src/archiver_mvl.c b/src/archiver_mvl.c index 1d49a48..95bb49b 100644 --- a/src/archiver_mvl.c +++ b/src/archiver_mvl.c @@ -29,11 +29,6 @@ #if (defined PHYSFS_SUPPORTS_MVL) -#include -#include -#include -#include "physfs.h" - #define __PHYSICSFS_INTERNAL__ #include "physfs_internal.h" diff --git a/src/archiver_qpak.c b/src/archiver_qpak.c index d5b65df..b74cb4e 100644 --- a/src/archiver_qpak.c +++ b/src/archiver_qpak.c @@ -31,11 +31,6 @@ #if (defined PHYSFS_SUPPORTS_QPAK) -#include -#include -#include -#include "physfs.h" - #define __PHYSICSFS_INTERNAL__ #include "physfs_internal.h" diff --git a/src/archiver_unpacked.c b/src/archiver_unpacked.c index cc58cf5..2227567 100644 --- a/src/archiver_unpacked.c +++ b/src/archiver_unpacked.c @@ -14,11 +14,6 @@ * This file written by Ryan C. Gordon. */ -#include -#include -#include -#include "physfs.h" - #define __PHYSICSFS_INTERNAL__ #include "physfs_internal.h" diff --git a/src/archiver_wad.c b/src/archiver_wad.c index 179358d..2542434 100644 --- a/src/archiver_wad.c +++ b/src/archiver_wad.c @@ -44,11 +44,6 @@ #if (defined PHYSFS_SUPPORTS_WAD) -#include -#include -#include -#include "physfs.h" - #define __PHYSICSFS_INTERNAL__ #include "physfs_internal.h" diff --git a/src/archiver_zip.c b/src/archiver_zip.c index 053c0b0..584bf62 100644 --- a/src/archiver_zip.c +++ b/src/archiver_zip.c @@ -9,14 +9,11 @@ #if (defined PHYSFS_SUPPORTS_ZIP) -#include -#include -#include #ifndef _WIN32_WCE #include #include #endif -#include "physfs.h" + #include "zlib.h" #define __PHYSICSFS_INTERNAL__ diff --git a/src/physfs.c b/src/physfs.c index 240cf7d..d3504ee 100644 --- a/src/physfs.c +++ b/src/physfs.c @@ -10,11 +10,6 @@ /* !!! FIXME: ERR_PAST_EOF shouldn't trigger for reads. Just return zero. */ -#include -#include -#include -#include "physfs.h" - #define __PHYSICSFS_INTERNAL__ #include "physfs_internal.h" diff --git a/src/physfs_byteorder.c b/src/physfs_byteorder.c index e5f72dc..5b826a7 100644 --- a/src/physfs_byteorder.c +++ b/src/physfs_byteorder.c @@ -8,9 +8,6 @@ * This file written by Ryan C. Gordon. */ -#include -#include - #define __PHYSICSFS_INTERNAL__ #include "physfs_internal.h" diff --git a/src/physfs_internal.h b/src/physfs_internal.h index 3379b1d..d69f152 100644 --- a/src/physfs_internal.h +++ b/src/physfs_internal.h @@ -16,7 +16,10 @@ #include "physfs.h" -#include /* make sure NULL is defined... */ +/* The holy trinity. */ +#include +#include +#include #ifdef HAVE_ASSERT_H #include @@ -29,11 +32,6 @@ #include #endif -/* !!! FIXME: if HAVE_ALLOCA_H would be good, too. */ -#if sun -#include -#endif - #if defined(__sun) || defined(sun) #include #endif diff --git a/src/physfs_unicode.c b/src/physfs_unicode.c index 6855734..f90421f 100644 --- a/src/physfs_unicode.c +++ b/src/physfs_unicode.c @@ -1,5 +1,3 @@ -#include "physfs.h" - #define __PHYSICSFS_INTERNAL__ #include "physfs_internal.h" diff --git a/src/platform_beos.cpp b/src/platform_beos.cpp index c2a12e9..ffe0257 100644 --- a/src/platform_beos.cpp +++ b/src/platform_beos.cpp @@ -35,9 +35,6 @@ #include #endif -#include -#include -#include #include #include diff --git a/src/platform_os2.c b/src/platform_os2.c index 9b54952..797c1b7 100644 --- a/src/platform_os2.c +++ b/src/platform_os2.c @@ -22,10 +22,7 @@ #define INCL_DOSMISC #include -#include -#include #include -#include #include #include diff --git a/src/platform_pocketpc.c b/src/platform_pocketpc.c index c94bdc1..49f6028 100644 --- a/src/platform_pocketpc.c +++ b/src/platform_pocketpc.c @@ -11,7 +11,6 @@ #ifdef PHYSFS_PLATFORM_POCKETPC -#include #include #include "physfs_internal.h" diff --git a/src/platform_posix.c b/src/platform_posix.c index 2a67bf3..3a6f5b6 100644 --- a/src/platform_posix.c +++ b/src/platform_posix.c @@ -11,9 +11,6 @@ #ifdef PHYSFS_PLATFORM_POSIX -#include -#include -#include #include #include #include diff --git a/src/platform_unix.c b/src/platform_unix.c index 0ccaeb0..4dcd366 100644 --- a/src/platform_unix.c +++ b/src/platform_unix.c @@ -11,9 +11,6 @@ #ifdef PHYSFS_PLATFORM_UNIX -#include -#include -#include #include #include #include diff --git a/src/platform_windows.c b/src/platform_windows.c index b286578..6aa7394 100644 --- a/src/platform_windows.c +++ b/src/platform_windows.c @@ -17,9 +17,6 @@ #endif #include -#include -#include -#include #include #include #include