Skip to content

Commit

Permalink
Try getting the ssize_t stuff right again...
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Sep 14, 2023
1 parent 7ca4e15 commit 4c35c25
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 4 additions & 3 deletions htmldoc/zipc.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@
* Types...
*/

# ifdef _WIN32
typedef off_t ssize_t;
# endif /* _WIN32 */
# if defined(_WIN32) && !defined(__CUPS_SSIZE_T_DEFINED)
# define __CUPS_SSIZE_T_DEFINED
typedef __int64 ssize_t;
# endif /* _WIN32 && !__CUPS_SSIZE_T_DEFINED */

typedef struct _zipc_s zipc_t; /* ZIP container */
typedef struct _zipc_file_s zipc_file_t;/* File/directory in ZIP container */
Expand Down
6 changes: 5 additions & 1 deletion vcnet/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <stdarg.h>
#include <io.h>
#include <direct.h>
#include <sys/types.h>


/*
Expand Down Expand Up @@ -82,7 +83,10 @@ typedef unsigned long useconds_t;
#undef const
#undef __CHAR_UNSIGNED__
#define __attribute__(x)
typedef off_t ssize_t;
# if defined(_WIN32) && !defined(__CUPS_SSIZE_T_DEFINED)
# define __CUPS_SSIZE_T_DEFINED
typedef __int64 ssize_t;
# endif /* _WIN32 && !__CUPS_SSIZE_T_DEFINED */


/*
Expand Down

0 comments on commit 4c35c25

Please sign in to comment.