diff options
author | Andrea Canciani <ranma42@gmail.com> | 2011-09-04 15:16:30 -0700 |
---|---|---|
committer | Andrea Canciani <ranma42@gmail.com> | 2011-09-04 16:23:37 -0700 |
commit | 761ef7ae8bad6d76f0f5e550882c5991fc0f92b1 (patch) | |
tree | 1e3fdfe13a57bc771178ade5622a64801bb79a66 /util/cairo-missing | |
parent | 60e04ff49eb818e9628c2e1421f5368655c61bea (diff) |
cairo-missing: Fix and cleanup ssize_t type definition
The definition of ssize_t is needed in cairo-missing.h and can be
dropped from files which include it.
Diffstat (limited to 'util/cairo-missing')
-rw-r--r-- | util/cairo-missing/cairo-missing.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/util/cairo-missing/cairo-missing.h b/util/cairo-missing/cairo-missing.h index 13977567d..ccb85fa46 100644 --- a/util/cairo-missing/cairo-missing.h +++ b/util/cairo-missing/cairo-missing.h @@ -35,6 +35,14 @@ #include <stdio.h> #include <string.h> +#include <sys/types.h> + +#ifdef _WIN32 +#define WIN32_LEAN_AND_MEAN +#include <windows.h> + +typedef SSIZE_T ssize_t; +#endif #ifndef HAVE_GETLINE cairo_private ssize_t |