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;
|
using std::string;
|
||||||
#ifdef HAVE_DIRENT_H
|
#ifdef HAVE_DIRENT_H
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#define DIRREF DIR*
|
typedef DIR *DIRREF;
|
||||||
#endif
|
#endif
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
|
@ -30,7 +30,7 @@ struct DIR_DESC {
|
||||||
bool first;
|
bool first;
|
||||||
void* handle;
|
void* handle;
|
||||||
};
|
};
|
||||||
#define DIRREF DIR_DESC*
|
typedef DIR_DESC *DIRREF;
|
||||||
#define PATH_SEPARATOR "\\"
|
#define PATH_SEPARATOR "\\"
|
||||||
#else
|
#else
|
||||||
#define PATH_SEPARATOR "/"
|
#define PATH_SEPARATOR "/"
|
||||||
|
|
Loading…
Reference in New Issue