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++;