diff options
author | Carl Worth <cworth@cworth.org> | 2005-08-05 07:48:18 +0000 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2005-08-05 07:48:18 +0000 |
commit | 0586daaa2927bfde9605487eef8e9b95c49d7d2f (patch) | |
tree | 97b334d5b7506d16f22fb454ca8c269fb3e167f2 /test/buffer-diff.c | |
parent | fd27af574d544d8adfd8cb6d5ac84837e6db43d2 (diff) | |
download | cairo-0586daaa2927bfde9605487eef8e9b95c49d7d2f.tar.gz |
Patch from John Ehresman <jpe@wingide.com> to aid win32 compilation:
Define snprintf as _snprintf when under the influence of _MSC_VER.
Define int32_t and friends as __int32 and friends when under the influence of _MSC_VER.
Make include of unistd.h conditional on HAVE_UNISTD_H.
Diffstat (limited to 'test/buffer-diff.c')
-rw-r--r-- | test/buffer-diff.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/buffer-diff.c b/test/buffer-diff.c index e5ba513ac..967ab4244 100644 --- a/test/buffer-diff.c +++ b/test/buffer-diff.c @@ -24,7 +24,9 @@ * Author: Richard D. Worth <richard@theworths.org> */ #include <stdio.h> +#ifdef HAVE_UNISTD_H #include <unistd.h> +#endif #include <errno.h> #include <string.h> |