summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Sutcliffe <ir0nh34d@users.sourceforge.net>2010-12-27 21:19:42 +0000
committerChris Sutcliffe <ir0nh34d@users.sourceforge.net>2010-12-27 21:19:42 +0000
commitd01906b8396ff1fce12b91373aae2160838a788f (patch)
tree050b5a71ac88c2bc0f71a71380f7af1c75802eb9
parent48defac76a00b21c3ac5ca8081eb0872e7b71fda (diff)
downloadcygnal-d01906b8396ff1fce12b91373aae2160838a788f.tar.gz
cygnal-d01906b8396ff1fce12b91373aae2160838a788f.tar.bz2
cygnal-d01906b8396ff1fce12b91373aae2160838a788f.zip
2010-12-27 Ozkan Sezer <sezero@users.sourceforge.net>
* include/dirent.h (dd_handle): Define as intptr_t.
-rw-r--r--winsup/mingw/ChangeLog6
-rw-r--r--winsup/mingw/include/dirent.h10
2 files changed, 9 insertions, 7 deletions
diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog
index bc65b26cf..fce92af24 100644
--- a/winsup/mingw/ChangeLog
+++ b/winsup/mingw/ChangeLog
@@ -1,4 +1,8 @@
-2010-11-08 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
+2010-12-27 Ozkan Sezer <sezero@users.sourceforge.net>
+
+ * include/dirent.h (dd_handle): Define as intptr_t.
+
+2010-11-08 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
* tlssup.c (__dyn_tls_init): Use an integer variable to iterate between
__xd_a and __xd_z.
diff --git a/winsup/mingw/include/dirent.h b/winsup/mingw/include/dirent.h
index e2a668924..44fb1c0a8 100644
--- a/winsup/mingw/include/dirent.h
+++ b/winsup/mingw/include/dirent.h
@@ -43,10 +43,10 @@ typedef struct
struct dirent dd_dir;
/* _findnext handle */
- long dd_handle;
+ intptr_t dd_handle;
/*
- * Status of search:
+ * Status of search:
* 0 = not started yet (next entry to read is first entry)
* -1 = off the end
* positive = 0 based index of next entry
@@ -90,10 +90,10 @@ typedef struct
struct _wdirent dd_dir;
/* _findnext handle */
- long dd_handle;
+ intptr_t dd_handle;
/*
- * Status of search:
+ * Status of search:
* 0 = not started yet (next entry to read is first entry)
* -1 = off the end
* positive = 0 based index of next entry
@@ -104,8 +104,6 @@ typedef struct
wchar_t dd_name[1];
} _WDIR;
-
-
_WDIR* __cdecl __MINGW_NOTHROW _wopendir (const wchar_t*);
struct _wdirent* __cdecl __MINGW_NOTHROW _wreaddir (_WDIR*);
int __cdecl __MINGW_NOTHROW _wclosedir (_WDIR*);