diff platform/dirent.h @ 525:2ff26b697877

Fixes for building with Innotek GCC. Will have to check for regressions with VAC and EMX.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sat, 20 Mar 2004 01:21:13 +0000
parents 6803aba19dae
children 56f311dc23f6
line wrap: on
line diff
--- a/platform/dirent.h	Wed Mar 17 18:49:14 2004 +0000
+++ b/platform/dirent.h	Sat Mar 20 01:21:13 2004 +0000
@@ -4,6 +4,7 @@
 #ifndef __DIRENT_H__
 #define __DIRENT_H__
 
+#include "compat.h"
 #include <stdio.h>
 #ifdef MAXPATHLEN
 	#undef MAXPATHLEN
@@ -39,21 +40,21 @@
 typedef struct _dirdescr DIR;
 /* the structs do not have to be defined here */
 
-extern DIR		*_opendir(const char *);
+extern DIR		* API _opendir(const char *);
 #define opendir(a) _opendir(a)
-extern DIR		*_openxdir(const char *, unsigned);
+extern DIR		*API _openxdir(const char *, unsigned);
 #define openxdir(a, b) _openxdir(a, b)
-extern struct dirent	*_readdir(DIR *);
+extern struct dirent	* API _readdir(DIR *);
 #define readdir(a) _readdir(a)
-extern void		_seekdir(DIR *, long);
+extern void		API _seekdir(DIR *, long);
 #define seekdir(a, b) _seekdir(a, b)
-extern long		_telldir(DIR *);
+extern long		API _telldir(DIR *);
 #define telldir(a) _telldir(a)
-extern void 		_closedir(DIR *);
+extern void 		API _closedir(DIR *);
 #define closedir(a) _closedir(a)
 
 #define			rewinddir(dirp) _seekdir(dirp, 0L)
-extern char *		_abs_path(const char *name, char *buffer, int len);
+extern char *		API _abs_path(const char *name, char *buffer, int len);
 #define abs_path(a, b, c) _abs_path(a, b, c)
 
 #ifndef S_IFMT