From 9c0f6f563b40edbeea92f31ad30d2c25759ce375 Mon Sep 17 00:00:00 2001 From: "Eric J. Korpela" Date: Wed, 3 Sep 2003 15:51:57 +0000 Subject: [PATCH] Never use #define to define a pointer type, always use typedef. svn path=/trunk/boinc/; revision=2239 --- lib/filesys.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/filesys.h b/lib/filesys.h index 0b8cfdaa0d..dfdbf3d809 100755 --- a/lib/filesys.h +++ b/lib/filesys.h @@ -21,7 +21,7 @@ using std::string; #ifdef HAVE_DIRENT_H #include -#define DIRREF DIR* +typedef DIR *DIRREF; #endif #ifdef _WIN32 #include @@ -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 "/"