app: set win32 only code between #ifdef G_OS_WIN32

PATHEXT environment variable to determine whether a file is executable
or not is a Windows-only concept.
This commit is contained in:
Jehan 2014-08-19 02:12:56 +02:00
parent cd0b2f61c0
commit 23245d2788
1 changed files with 4 additions and 3 deletions

View File

@ -209,11 +209,11 @@ gimp_plug_in_manager_search (GimpPlugInManager *manager,
const gchar *path_str;
GList *path;
GList *list;
#ifdef G_OS_WIN32
const gchar *pathext = g_getenv ("PATHEXT");
/* If PATHEXT is set, we are likely on Windows and need to add
* the known file extensions.
*/
/* On Windows, we need to add the known file extensions in PATHEXT. */
if (pathext)
{
gchar *exts;
@ -232,6 +232,7 @@ gimp_plug_in_manager_search (GimpPlugInManager *manager,
g_free (exts);
}
}
#endif /* G_OS_WIN32 */
status_callback (_("Searching Plug-Ins"), "", 0.0);