Removed unnecessary include files.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5674 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -10,6 +10,10 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#include <dirent.h>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/* Data */
|
/* Data */
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <dirent.h>
|
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
@@ -13,7 +12,7 @@
|
|||||||
|
|
||||||
|
|
||||||
DIR* __fastcall__ opendir (const char*)
|
DIR* __fastcall__ opendir (const char*)
|
||||||
{
|
{
|
||||||
unsigned char buf[32];
|
unsigned char buf[32];
|
||||||
DIR* dir = 0;
|
DIR* dir = 0;
|
||||||
DIR d;
|
DIR d;
|
||||||
@@ -21,7 +20,7 @@ DIR* __fastcall__ opendir (const char*)
|
|||||||
/* Setup file name and offset */
|
/* Setup file name and offset */
|
||||||
d.name[0] = '$';
|
d.name[0] = '$';
|
||||||
d.name[1] = '\0';
|
d.name[1] = '\0';
|
||||||
d.off = 0;
|
d.off = sizeof (buf);
|
||||||
|
|
||||||
/* Open the directory on disk for reading */
|
/* Open the directory on disk for reading */
|
||||||
d.fd = open (d.name, O_RDONLY);
|
d.fd = open (d.name, O_RDONLY);
|
||||||
|
|||||||
@@ -4,9 +4,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <dirent.h>
|
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
@@ -36,7 +33,7 @@ struct dirent* __fastcall__ readdir (register DIR* dir)
|
|||||||
goto exitpoint;
|
goto exitpoint;
|
||||||
}
|
}
|
||||||
dir->off += 2;
|
dir->off += 2;
|
||||||
|
|
||||||
/* Read the number of blocks */
|
/* Read the number of blocks */
|
||||||
if (!_dirread (dir, &entry.d_blocks, sizeof (entry.d_blocks))) {
|
if (!_dirread (dir, &entry.d_blocks, sizeof (entry.d_blocks))) {
|
||||||
goto exitpoint;
|
goto exitpoint;
|
||||||
|
|||||||
Reference in New Issue
Block a user