mirror of https://github.com/BOINC/boinc.git
Never use #define to define a pointer type, always use typedef.
svn path=/trunk/boinc/; revision=2239
This commit is contained in:
parent
14e98b9333
commit
9c0f6f563b
|
@ -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 "/"
|
||||
|
|
Loading…
Reference in New Issue