src/cx/common.h

changeset 1053
2e86cf779135
parent 1034
424b5b74a68f
--- a/src/cx/common.h	Mon Dec 23 00:34:05 2024 +0100
+++ b/src/cx/common.h	Mon Dec 23 18:32:25 2024 +0100
@@ -365,6 +365,13 @@
 // fix missing ssize_t definition
 #include <BaseTsd.h>
 typedef SSIZE_T ssize_t;
+#ifndef SSIZE_MAX
+#ifdef _WIN64
+#define SSIZE_MAX 0x7fffffffffffffffi64
+#else
+#define SSIZE_MAX 0x7fffffffi32
+#endif
+#endif
 
 // fix missing _Thread_local support
 #define _Thread_local __declspec(thread)

mercurial