Commit 92792ef1 authored by François Grisez's avatar François Grisez

Fix compilation with MinGW

parent c384b0b3
......@@ -39,7 +39,7 @@
#endif
#endif /*_WIN32_WCE*/
#ifdef WIN32
#ifdef _MSC_VER
#include <Shlwapi.h>
#else
#include <libgen.h>
......@@ -665,7 +665,7 @@ const char* lp_config_get_default_string(const LpConfig *lpconfig, const char *s
}
static char *_lp_config_dirname(char *path) {
#ifdef WIN32
#ifdef _MSC_VER
char *dir = ms_strdup(path);
PathRemoveFileSpec(dir);
return dir;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment