comparison util.c @ 795:bce97fc0bb8a

Fix mingw-w64 build and cross-compilation
author =?UTF-8?q?Higor=20Eur=C3=ADpedes?= <heuripedes@gmail.com>
date Sun, 26 Jul 2015 10:59:41 -0700
parents 13d3744b170e
children 0b692b5d154b
comparison
equal deleted inserted replaced
790:e8b14d5a5b5a 795:bce97fc0bb8a
85 { 85 {
86 exe_str = str; 86 exe_str = str;
87 } 87 }
88 88
89 #ifdef _WIN32 89 #ifdef _WIN32
90 #include "Shlobj.h" 90 #include <windows.h>
91 #include "Windows.h" 91 #include <shlobj.h>
92 92
93 char * get_home_dir() 93 char * get_home_dir()
94 { 94 {
95 static char path[MAX_PATH]; 95 static char path[MAX_PATH];
96 SHGetFolderPathA(NULL, CSIDL_PROFILE, NULL, 0, path); 96 SHGetFolderPathA(NULL, CSIDL_PROFILE, NULL, 0, path);