Bug 545954 - 64-bit issue in dirent

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
This commit is contained in:
Tor Lillqvist 2008-08-02 08:43:30 +00:00 committed by Tor Lillqvist
parent 3fceef00aa
commit 302111f89a
2 changed files with 17 additions and 2 deletions

View File

@ -1,3 +1,12 @@
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

View File

@ -25,6 +25,12 @@ struct dirent
char d_name[FILENAME_MAX]; /* File name. */
};
#ifdef _WIN64
#define INTPTR __int64
#else
#define INTPTR long
#endif
/*
* This is an internal data structure. Good programmers will not use it
* except as an argument to one of the functions below.
@ -41,7 +47,7 @@ typedef struct
struct dirent dd_dir;
/* _findnext handle */
long dd_handle;
INTPTR dd_handle;
/*
* Status of search:
@ -88,7 +94,7 @@ typedef struct
struct _wdirent dd_dir;
/* _findnext handle */
long dd_handle;
INTPTR dd_handle;
/*
* Status of search: