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
This commit is contained in:
parent
8ec004cc08
commit
8caa937739
@ -19,11 +19,14 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
#ifndef G_OS_WIN32
|
||||||
|
# include <unistd.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct _LoadContext LoadContext;
|
typedef struct _LoadContext LoadContext;
|
||||||
|
|
||||||
struct _LoadContext
|
struct _LoadContext
|
||||||
|
@ -25,6 +25,10 @@
|
|||||||
#include <glib/gstdio.h>
|
#include <glib/gstdio.h>
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
#ifdef G_OS_WIN32
|
||||||
|
# include <io.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#define DEPTH_INCREMENT 2
|
#define DEPTH_INCREMENT 2
|
||||||
|
|
||||||
static char *
|
static char *
|
||||||
|
@ -22,6 +22,10 @@
|
|||||||
#include <glib/gstdio.h>
|
#include <glib/gstdio.h>
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
#ifdef G_OS_WIN32
|
||||||
|
# include <io.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
static char *
|
static char *
|
||||||
test_get_reference_file (const char *ui_file)
|
test_get_reference_file (const char *ui_file)
|
||||||
|
@ -26,6 +26,10 @@
|
|||||||
#include <glib/gstdio.h>
|
#include <glib/gstdio.h>
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
#ifdef G_OS_WIN32
|
||||||
|
# include <io.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
static char *
|
static char *
|
||||||
test_get_reference_file (const char *css_file)
|
test_get_reference_file (const char *css_file)
|
||||||
{
|
{
|
||||||
|
@ -22,6 +22,10 @@
|
|||||||
#include <glib/gstdio.h>
|
#include <glib/gstdio.h>
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
#ifdef G_OS_WIN32
|
||||||
|
# include <io.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/* There shall be no other styles */
|
/* There shall be no other styles */
|
||||||
#define GTK_STYLE_PROVIDER_PRIORITY_FORCE G_MAXUINT
|
#define GTK_STYLE_PROVIDER_PRIORITY_FORCE G_MAXUINT
|
||||||
|
|
||||||
|
@ -28,6 +28,10 @@
|
|||||||
#include <glib/gstdio.h>
|
#include <glib/gstdio.h>
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
#ifdef G_OS_WIN32
|
||||||
|
# include <direct.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
SNAPSHOT_WINDOW,
|
SNAPSHOT_WINDOW,
|
||||||
SNAPSHOT_DRAW
|
SNAPSHOT_DRAW
|
||||||
|
Loading…
Reference in New Issue
Block a user