X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=dirent_lose.h;fp=dirent_lose.h;h=3e6bef2af03e6d8841bde179f1e115ed339c0d3a;hb=977e372d5099e34ec88e59f3728c7944d97ed424;hp=0000000000000000000000000000000000000000;hpb=bdae4ca0d43c98d6b47c8b97d3190585a4ea206d;p=rmac diff --git a/dirent_lose.h b/dirent_lose.h new file mode 100644 index 0000000..3e6bef2 --- /dev/null +++ b/dirent_lose.h @@ -0,0 +1,18 @@ +#ifndef __DIRENT_LOSE_H__ +#define __DIRENT_LOSE_H__ + +#if defined(WIN32) || defined(WIN64) + +// Microsoft™ Windows™ dependent code + +// This is only needed to keep the compiler from throwing a fit, it's not meant +// to be used except as a sentinel (NULL/non-NULL). +typedef struct { int i; /* dummy member */ } DIR; + +// These are the only two functions used from +DIR * opendir(const char *); +int closedir(DIR *); + +#endif + +#endif // __DIRENT_LOSE_H__