Return value of _findfirst is intptr_t; see
https://msdn.microsoft.com/en-us/library/zyzxfzac.aspx
[ghudson@mit.edu: also fix plugins.c]
ticket: 8230
};
typedef struct {
- long handle; /* _findfirst/_findnext handle */
+ intptr_t handle; /* _findfirst/_findnext handle */
short offset; /* offset into directory */
short finished; /* 1 if there are not more files */
struct _finddata_t fileinfo;/* from _findfirst/_findnext */
{
DIR *dp;
char *filespec;
- long handle;
+ intptr_t handle;
int index;
filespec = malloc(strlen(dir) + 2 + 1);
void
echo_files(char *prefix, char *f)
{
- long ff;
+ intptr_t ff;
struct _finddata_t fdt;
char *slash;
char filepath[256];