diff --git a/test/create-for-stream.c b/test/create-for-stream.c index 3e7577a6a..06f2db2b0 100644 --- a/test/create-for-stream.c +++ b/test/create-for-stream.c @@ -28,7 +28,10 @@ #include #include #include + +#ifndef _WIN32 #include +#endif #if CAIRO_HAS_PS_SURFACE #include @@ -172,6 +175,7 @@ test_surface (const cairo_test_context_t *ctx, } /* test propagation of file errors - for now this is unix-only */ +#ifndef _WIN32 if (access("/dev/full", W_OK) == 0) { surface = file_constructor ("/dev/full", WIDTH_IN_POINTS, HEIGHT_IN_POINTS); cairo_surface_finish (surface); @@ -188,6 +192,7 @@ test_surface (const cairo_test_context_t *ctx, cairo_test_log (ctx, "/dev/full does not exist; skipping write test.\n"); } +#endif /* construct the real surface */ wc.ctx = ctx;