Never use #define to define a pointer type, always use typedef.

svn path=/trunk/boinc/; revision=2239
This commit is contained in:
Eric J. Korpela 2003-09-03 15:51:57 +00:00
parent 14e98b9333
commit 9c0f6f563b
1 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@
using std::string;
#ifdef HAVE_DIRENT_H
#include <dirent.h>
#define DIRREF DIR*
typedef DIR *DIRREF;
#endif
#ifdef _WIN32
#include <io.h>
@ -30,7 +30,7 @@ struct DIR_DESC {
bool first;
void* handle;
};
#define DIRREF DIR_DESC*
typedef DIR_DESC *DIRREF;
#define PATH_SEPARATOR "\\"
#else
#define PATH_SEPARATOR "/"