diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2017-05-31 17:28:37 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2017-08-08 16:15:33 +0800 |
commit | 9b11f357f9f968849c70044eaac5d43713436c94 (patch) | |
tree | 88ac89eebb684818e1df2cea37f67fafab2b9452 /tests/testboundaries.c | |
parent | 0940ddc24f7301f09d945ec44360699ce30859c6 (diff) | |
download | pango-9b11f357f9f968849c70044eaac5d43713436c94.tar.gz |
tests: Don't include unistd.h unconditionally
Don't include unistd.h on Windows, and include io.h if necessary,
as Windows compilers may not ship with it.
https://bugzilla.gnome.org/show_bug.cgi?id=783274
Diffstat (limited to 'tests/testboundaries.c')
-rw-r--r-- | tests/testboundaries.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/testboundaries.c b/tests/testboundaries.c index 2f7a79bc..75da772e 100644 --- a/tests/testboundaries.c +++ b/tests/testboundaries.c @@ -22,11 +22,14 @@ #include <string.h> #include <stdlib.h> #include <stdio.h> -#include <unistd.h> #include <glib.h> #include <pango/pango.h> +#ifndef G_OS_WIN32 +#include <unistd.h> +#endif + #define CHFORMAT "%0#6x" /* FIXME for now this just tests that the breaking of some sample |