2008-08-02 Tor Lillqvist <tml@novell.com>
Bug 545954 - 64-bit issue in dirent
* win32/dirent/dirent.h: Use __int64 for the dd_handle on 64-bit
Windows. (Would use intptr_t, but that is not available before
MSVS8, and we want to keep this compilable also with MSVS6 and 7,
I think.) Thanks to Richard Hult.
svn path=/trunk/; revision=7286
+2008-08-02 Tor Lillqvist <tml@novell.com>
+
+ Bug 545954 - 64-bit issue in dirent
+
+ * win32/dirent/dirent.h: Use __int64 for the dd_handle on 64-bit
+ Windows. (Would use intptr_t, but that is not available before
+ MSVS8, and we want to keep this compilable also with MSVS6 and 7,
+ I think.) Thanks to Richard Hult.
+
2008-05-19 Tor Lillqvist <tml@novell.com>
* win32/dirent/dirent.c: Include dirent.h with doublequotes so
char d_name[FILENAME_MAX]; /* File name. */\r
};\r
\r
+#ifdef _WIN64\r
+#define INTPTR __int64\r
+#else\r
+#define INTPTR long\r
+#endif\r
+\r
/*\r
* This is an internal data structure. Good programmers will not use it\r
* except as an argument to one of the functions below.\r
struct dirent dd_dir;\r
\r
/* _findnext handle */\r
- long dd_handle;\r
+ INTPTR dd_handle;\r
\r
/*\r
* Status of search:\r
struct _wdirent dd_dir;\r
\r
/* _findnext handle */\r
- long dd_handle;\r
+ INTPTR dd_handle;\r
\r
/*\r
* Status of search:\r