gtk-launch: Fix compilation with MSVC

This commit is contained in:
Nirbheek Chauhan 2018-11-20 16:08:02 +05:30 committed by Christoph Reiter
parent a4fe15d9f0
commit 00842f4d4e

View File

@ -21,7 +21,9 @@
#include <config.h>
#include <stdio.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <locale.h>
#include <errno.h>
@ -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++;