diff options
Diffstat (limited to 'get_path.c')
-rw-r--r-- | get_path.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/get_path.c b/get_path.c index 16c93551c8..17520f2a2c 100644 --- a/get_path.c +++ b/get_path.c @@ -145,7 +145,7 @@ char *get_path(const char *filename){ 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 @@ void set_path_env() 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) */ |