aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2011-04-10 19:56:06 +0000
committerGuy Harris <guy@alum.mit.edu>2011-04-10 19:56:06 +0000
commit0629b7399aa9fadca7ff892b77836c5e5f5d8567 (patch)
tree2637dd7d87e1622f41d226398c2668d90c6e2f82 /wsutil
parent71d4caa5b92bbf9ce36583f3535a13980dcf17bc (diff)
Define ws_statb64 to be the appropriate "struct XXX" for a
64-bit-file-size-capable stat call, and use it for ws_fstat64(). svn path=/trunk/; revision=36545
Diffstat (limited to 'wsutil')
-rw-r--r--wsutil/file_util.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/wsutil/file_util.h b/wsutil/file_util.h
index caf7a85a2e..6289173a7c 100644
--- a/wsutil/file_util.h
+++ b/wsutil/file_util.h
@@ -99,6 +99,11 @@ extern FILE * ws_stdio_freopen (const gchar *filename, const gchar *mode, FILE *
#define ws_fstat64 _fstati64 /* use _fstati64 for 64-bit size support */
#define ws_lseek64 _lseeki64 /* use _lseeki64 for 64-bit offset support */
+/*
+ * The structure to pass to ws_fstat64().
+ */
+#define ws_statb64 struct _stat64
+
/* DLL loading */
/** Try to remove the current directory from the DLL search path.
@@ -140,6 +145,11 @@ extern char *getenv_utf8(const char *varname);
#define O_BINARY 0 /* Win32 needs the O_BINARY flag for open() */
#endif /* _WIN32 */
+/*
+ * The structure to pass to ws_fstat64().
+ */
+#define ws_statb64 struct stat
+
/* directory handling */
#define WS_DIR GDir
#define WS_DIRENT const char