handle missing ssize_t on Windows
@@ -238,6 +238,11 @@ typedef __uint3264 DWORD_PTR, *PDWORD_PTR;
typedef ULONG_PTR SIZE_T, *PSIZE_T;
typedef LONG_PTR SSIZE_T, *PSSIZE_T;
+/* Handle missing ssize_t on Windows */
+#if defined(_WIN32) || defined(_WIN64)
+typedef SSIZE_T ssize_t;
+#endif
+
typedef float FLOAT;
typedef double DOUBLE;
@@ -406,16 +411,20 @@ typedef void* FARPROC;
typedef struct tagDEC
{
USHORT wReserved;
- union {
- struct {
+ union
+ {
+ struct
+ {
BYTE scale;
BYTE sign;
} DUMMYSTRUCTNAME;
USHORT signscale;
} DUMMYUNIONNAME;
ULONG Hi32;
- union {
- struct {
+ union
+ {
+ struct
+ {
ULONG Lo32;
ULONG Mid32;
} DUMMYSTRUCTNAME2;
