Skip to content
Snippets Groups Projects
Commit affc86e6 authored by deuce's avatar deuce
Browse files

DLLangadingdong

parent 0cb16ec2
No related branches found
No related tags found
No related merge requests found
...@@ -334,7 +334,7 @@ long DLLCALL getdirsize(const char* path, BOOL include_subdirs, BOOL subdir_only ...@@ -334,7 +334,7 @@ long DLLCALL getdirsize(const char* path, BOOL include_subdirs, BOOL subdir_only
/* POSIX directory operations using Microsoft _findfirst/next API. */ /* POSIX directory operations using Microsoft _findfirst/next API. */
/****************************************************************************/ /****************************************************************************/
#if defined(_MSC_VER) || defined(__DMC__) #if defined(_MSC_VER) || defined(__DMC__)
DIR* opendir(const char* dirname) DIR* DLLCALL opendir(const char* dirname)
{ {
DIR* dir; DIR* dir;
...@@ -354,7 +354,7 @@ DIR* opendir(const char* dirname) ...@@ -354,7 +354,7 @@ DIR* opendir(const char* dirname)
} }
return(dir); return(dir);
} }
struct dirent* readdir(DIR* dir) struct dirent* DLLCALL readdir(DIR* dir)
{ {
if(dir==NULL) if(dir==NULL)
return(NULL); return(NULL);
...@@ -367,7 +367,7 @@ struct dirent* readdir(DIR* dir) ...@@ -367,7 +367,7 @@ struct dirent* readdir(DIR* dir)
dir->end=TRUE; dir->end=TRUE;
return(&dir->dirent); return(&dir->dirent);
} }
int closedir (DIR* dir) int DLLCALL closedir (DIR* dir)
{ {
if(dir==NULL) if(dir==NULL)
return(-1); return(-1);
...@@ -375,7 +375,7 @@ int closedir (DIR* dir) ...@@ -375,7 +375,7 @@ int closedir (DIR* dir)
free(dir); free(dir);
return(0); return(0);
} }
void rewinddir(DIR* dir) void DLLCALL rewinddir(DIR* dir)
{ {
if(dir==NULL) if(dir==NULL)
return; return;
......
...@@ -156,10 +156,10 @@ extern "C" { ...@@ -156,10 +156,10 @@ extern "C" {
/* Prototypes. /* Prototypes.
*/ */
DIR * opendir (const char *__dirname); DLLEXPORT DIR* DLLCALL opendir (const char *__dirname);
struct dirent * readdir (DIR *__dir); DLLEXPORT struct dirent* DLLCALL readdir (DIR *__dir);
int closedir (DIR *__dir); DLLEXPORT int DLLCALL closedir (DIR *__dir);
void rewinddir(DIR *__dir); DLLEXPORT void DLLCALL rewinddir(DIR *__dir);
#elif !defined(__WATCOMC__) #elif !defined(__WATCOMC__)
#include <dirent.h> /* POSIX directory functions */ #include <dirent.h> /* POSIX directory functions */
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment