diff get_path.c @ 27727:48c1ae64255b

Replace preprocessor check for WIN32 with checks for __MINGW32__ and __CYGWIN__. This avoids a pointless indirection that only obscures what is really done.
author diego
date Mon, 13 Oct 2008 16:23:55 +0000
parents a593f936d330
children fe1ef9daa92e
line wrap: on
line diff
--- a/get_path.c	Mon Oct 13 16:06:15 2008 +0000
+++ b/get_path.c	Mon Oct 13 16:23:55 2008 +0000
@@ -145,7 +145,7 @@
 	return buff;
 }
 
-#if defined(WIN32) && defined(CONFIG_WIN32DLL)
+#if (defined(__MINGW32__) || defined(__CYGWIN__)) && defined(CONFIG_WIN32DLL)
 void set_path_env()
 {
 	/*make our codec dirs available for LoadLibraryA()*/
@@ -181,4 +181,4 @@
 	if (!SetEnvironmentVariableA("PATH", tmppath))
 		mp_msg(MSGT_WIN32, MSGL_WARN, "Cannot set PATH!");
 }
-#endif /*WIN32 && CONFIG_WIN32DLL*/
+#endif /* (defined(__MINGW32__) || defined(__CYGWIN__)) && defined(CONFIG_WIN32DLL) */