diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2017-07-21 16:00:44 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2017-07-21 23:36:03 +0800 |
commit | 171ff43340a9a0a8a896d067fe83b72bc82b887e (patch) | |
tree | 667cf93ee79d35edff7e2c3de2515f7855a1caf9 /tests | |
parent | 4d3aa827f633669c2e911ed50c8a00c9a37c62f7 (diff) | |
download | gtk+-171ff43340a9a0a8a896d067fe83b72bc82b887e.tar.gz |
tests: Include system headers appropriately
Don't include unistd.h on Windows, and include the appropriate headers on
Windows as necessary.
https://bugzilla.gnome.org/show_bug.cgi?id=773299
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testanimation.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/testanimation.c b/tests/testanimation.c index 45f4602f3d..8190be9e86 100644 --- a/tests/testanimation.c +++ b/tests/testanimation.c @@ -19,11 +19,14 @@ #include "config.h" #include <stdio.h> #include <stdlib.h> -#include <unistd.h> #include <string.h> #include <errno.h> #include <gtk/gtk.h> +#ifndef G_OS_WIN32 +# include <unistd.h> +#endif + typedef struct _LoadContext LoadContext; struct _LoadContext |