Skip to content

Commit

Permalink
Cleaned up some #includes.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Sep 6, 2010
1 parent 3f02ce7 commit f871802
Show file tree
Hide file tree
Showing 20 changed files with 5 additions and 79 deletions.
5 changes: 0 additions & 5 deletions src/archiver_dir.c
Expand Up @@ -6,11 +6,6 @@
* This file written by Ryan C. Gordon.
*/

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "physfs.h"

#define __PHYSICSFS_INTERNAL__
#include "physfs_internal.h"

Expand Down
5 changes: 0 additions & 5 deletions src/archiver_grp.c
Expand Up @@ -26,11 +26,6 @@

#if (defined PHYSFS_SUPPORTS_GRP)

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "physfs.h"

#define __PHYSICSFS_INTERNAL__
#include "physfs_internal.h"

Expand Down
5 changes: 0 additions & 5 deletions src/archiver_hog.c
Expand Up @@ -31,11 +31,6 @@

#if (defined PHYSFS_SUPPORTS_HOG)

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "physfs.h"

#define __PHYSICSFS_INTERNAL__
#include "physfs_internal.h"

Expand Down
2 changes: 0 additions & 2 deletions src/archiver_iso9660.c
Expand Up @@ -29,8 +29,6 @@
#define __PHYSICSFS_INTERNAL__
#include "physfs_internal.h"

#include <stdio.h>
#include <string.h>
#include <time.h>

/* cache files smaller than this completely in memory */
Expand Down
6 changes: 0 additions & 6 deletions src/archiver_lzma.c
Expand Up @@ -9,12 +9,6 @@

#if (defined PHYSFS_SUPPORTS_7Z)

#include <stdlib.h>
#include <string.h>
#include <time.h>

#include "physfs.h"

#define __PHYSICSFS_INTERNAL__
#include "physfs_internal.h"

Expand Down
5 changes: 0 additions & 5 deletions src/archiver_mvl.c
Expand Up @@ -29,11 +29,6 @@

#if (defined PHYSFS_SUPPORTS_MVL)

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "physfs.h"

#define __PHYSICSFS_INTERNAL__
#include "physfs_internal.h"

Expand Down
5 changes: 0 additions & 5 deletions src/archiver_qpak.c
Expand Up @@ -31,11 +31,6 @@

#if (defined PHYSFS_SUPPORTS_QPAK)

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "physfs.h"

#define __PHYSICSFS_INTERNAL__
#include "physfs_internal.h"

Expand Down
5 changes: 0 additions & 5 deletions src/archiver_unpacked.c
Expand Up @@ -14,11 +14,6 @@
* This file written by Ryan C. Gordon.
*/

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "physfs.h"

#define __PHYSICSFS_INTERNAL__
#include "physfs_internal.h"

Expand Down
5 changes: 0 additions & 5 deletions src/archiver_wad.c
Expand Up @@ -44,11 +44,6 @@

#if (defined PHYSFS_SUPPORTS_WAD)

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "physfs.h"

#define __PHYSICSFS_INTERNAL__
#include "physfs_internal.h"

Expand Down
5 changes: 1 addition & 4 deletions src/archiver_zip.c
Expand Up @@ -9,14 +9,11 @@

#if (defined PHYSFS_SUPPORTS_ZIP)

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifndef _WIN32_WCE
#include <errno.h>
#include <time.h>
#endif
#include "physfs.h"

#include "zlib.h"

#define __PHYSICSFS_INTERNAL__
Expand Down
5 changes: 0 additions & 5 deletions src/physfs.c
Expand Up @@ -10,11 +10,6 @@

/* !!! FIXME: ERR_PAST_EOF shouldn't trigger for reads. Just return zero. */

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "physfs.h"

#define __PHYSICSFS_INTERNAL__
#include "physfs_internal.h"

Expand Down
3 changes: 0 additions & 3 deletions src/physfs_byteorder.c
Expand Up @@ -8,9 +8,6 @@
* This file written by Ryan C. Gordon.
*/

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

#define __PHYSICSFS_INTERNAL__
#include "physfs_internal.h"

Expand Down
10 changes: 4 additions & 6 deletions src/physfs_internal.h
Expand Up @@ -16,7 +16,10 @@

#include "physfs.h"

#include <stdlib.h> /* make sure NULL is defined... */
/* The holy trinity. */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#ifdef HAVE_ASSERT_H
#include <assert.h>
Expand All @@ -29,11 +32,6 @@
#include <malloc.h>
#endif

/* !!! FIXME: if HAVE_ALLOCA_H would be good, too. */
#if sun
#include <alloca.h>
#endif

#if defined(__sun) || defined(sun)
#include <alloca.h>
#endif
Expand Down
2 changes: 0 additions & 2 deletions src/physfs_unicode.c
@@ -1,5 +1,3 @@
#include "physfs.h"

#define __PHYSICSFS_INTERNAL__
#include "physfs_internal.h"

Expand Down
3 changes: 0 additions & 3 deletions src/platform_beos.cpp
Expand Up @@ -35,9 +35,6 @@
#include <be/support/Locker.h>
#endif

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>

Expand Down
3 changes: 0 additions & 3 deletions src/platform_os2.c
Expand Up @@ -22,10 +22,7 @@
#define INCL_DOSMISC
#include <os2.h>

#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <time.h>
#include <ctype.h>

Expand Down
1 change: 0 additions & 1 deletion src/platform_pocketpc.c
Expand Up @@ -11,7 +11,6 @@

#ifdef PHYSFS_PLATFORM_POCKETPC

#include <stdio.h>
#include <windows.h>

#include "physfs_internal.h"
Expand Down
3 changes: 0 additions & 3 deletions src/platform_posix.c
Expand Up @@ -11,9 +11,6 @@

#ifdef PHYSFS_PLATFORM_POSIX

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <ctype.h>
#include <sys/types.h>
Expand Down
3 changes: 0 additions & 3 deletions src/platform_unix.c
Expand Up @@ -11,9 +11,6 @@

#ifdef PHYSFS_PLATFORM_UNIX

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <unistd.h>
#include <sys/types.h>
Expand Down
3 changes: 0 additions & 3 deletions src/platform_windows.c
Expand Up @@ -17,9 +17,6 @@
#endif

#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <ctype.h>
#include <time.h>
Expand Down

0 comments on commit f871802

Please sign in to comment.