From 00842f4d4e121c419d702cb8a3cb1abc7fcd3cb0 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Tue, 20 Nov 2018 16:08:02 +0530 Subject: [PATCH] gtk-launch: Fix compilation with MSVC --- gtk/gtk-launch.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gtk/gtk-launch.c b/gtk/gtk-launch.c index ccf1bd8d4b..87b351bf2a 100644 --- a/gtk/gtk-launch.c +++ b/gtk/gtk-launch.c @@ -21,7 +21,9 @@ #include #include +#ifdef HAVE_UNISTD_H #include +#endif #include #include @@ -136,7 +138,9 @@ main (int argc, char *argv[]) info = G_APP_INFO (g_desktop_app_info_new (desktop_file_name)); g_free (desktop_file_name); #else -#warning Please add support for creating AppInfo from id for your OS + #ifndef _MSC_VER + #warning Please add support for creating AppInfo from id for your OS + #endif g_printerr (_("Creating AppInfo from id not supported on non unix operating systems")); #endif args++;