From 3cc9735641f9a0794c959d2c270983271812e7eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net> Date: Sat, 24 Feb 2024 11:45:30 -0500 Subject: [PATCH] Looks like that worked... intptr_t the rest. --- src/xpdev/dirwrap.c | 6 +++--- src/xpdev/dirwrap.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/xpdev/dirwrap.c b/src/xpdev/dirwrap.c index 0f0b0f801c..fd101e0e12 100644 --- a/src/xpdev/dirwrap.c +++ b/src/xpdev/dirwrap.c @@ -522,7 +522,7 @@ bool fexist(const char *filespec) { #if defined(_WIN32) - long handle; + intptr_t handle; struct _finddata_t f; bool found; @@ -584,7 +584,7 @@ bool fexistcase(char *path) #if defined(_WIN32) char* fname; - long handle; + intptr_t handle; struct _finddata_t f; if(access(path, F_OK)==-1 && !strchr(path,'*') && !strchr(path,'?')) @@ -693,7 +693,7 @@ bool isdir(const char *filename) int getfattr(const char* filename) { #if defined(_WIN32) - long handle; + intptr_t handle; struct _finddata_t finddata; if((handle=_findfirst((char*)filename,&finddata))==-1) { diff --git a/src/xpdev/dirwrap.h b/src/xpdev/dirwrap.h index 57be47964f..c84c9b9e75 100644 --- a/src/xpdev/dirwrap.h +++ b/src/xpdev/dirwrap.h @@ -137,7 +137,7 @@ extern "C" { { char filespec[260]; struct dirent dirent; - long handle; + intptr_t handle; struct _finddata_t finddata; bool end; /* End of directory flag */ } DIR; -- GitLab