mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-02 07:36:17 +01:00
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:
parent
3fceef00aa
commit
302111f89a
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user