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 /perf | |
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 'perf')
-rw-r--r-- | perf/cairo-analyse-trace.c | 2 | ||||
-rw-r--r-- | perf/cairo-perf-report.c | 6 | ||||
-rw-r--r-- | perf/cairo-perf-trace.c | 2 |
3 files changed, 0 insertions, 10 deletions
diff --git a/perf/cairo-analyse-trace.c b/perf/cairo-analyse-trace.c index 962290746..ac2a4e7a7 100644 --- a/perf/cairo-analyse-trace.c +++ b/perf/cairo-analyse-trace.c @@ -55,8 +55,6 @@ #ifdef _MSC_VER #include "dirent-win32.h" -typedef SSIZE_T ssize_t; - static char * basename_no_ext (char *path) { diff --git a/perf/cairo-perf-report.c b/perf/cairo-perf-report.c index ffcd90ae2..fcce0e035 100644 --- a/perf/cairo-perf-report.c +++ b/perf/cairo-perf-report.c @@ -44,12 +44,6 @@ #include <libgen.h> #endif -/* 'ssize_t' does not exist in the C standard on win32. - * We use 'ptrdiff_t', which is nearly equivalent. */ -#ifdef _MSC_VER -typedef ptrdiff_t ssize_t; -#endif - #ifdef _MSC_VER static long long strtoll (const char *nptr, diff --git a/perf/cairo-perf-trace.c b/perf/cairo-perf-trace.c index 3a9b82275..2cef2b14c 100644 --- a/perf/cairo-perf-trace.c +++ b/perf/cairo-perf-trace.c @@ -56,8 +56,6 @@ #ifdef _MSC_VER #include "dirent-win32.h" -typedef SSIZE_T ssize_t; - static char * basename_no_ext (char *path) { |