fixes for win32 compilation
This commit is contained in:
parent
57a166a0bd
commit
f2dbb509cb
2 changed files with 13 additions and 0 deletions
|
@ -128,6 +128,9 @@ stratagus-game-launcher.h - Stratagus Game Launcher
|
|||
* Path to stratagus executable binary
|
||||
**/
|
||||
|
||||
#ifndef STRATAGUS_GAME_LAUNCHER_H
|
||||
#define STRATAGUS_GAME_LAUNCHER_H
|
||||
|
||||
/* Fake definitions for Doxygen */
|
||||
#ifdef DOXYGEN
|
||||
#define GAME_NAME
|
||||
|
@ -687,3 +690,5 @@ int main(int argc, char * argv[]) {
|
|||
}
|
||||
exit(ret);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -26,6 +26,9 @@ stratagus-game-launcher.h - Stratagus Game Launcher
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef STRATAGUS_GAMEUTILS_H
|
||||
#define STRATAGUS_GAMEUTILS_H
|
||||
|
||||
void error(const char* title, const char* text);
|
||||
void mkdir_p(const char* path);
|
||||
void copy_dir(const char* source_folder, const char* target_folder);
|
||||
|
@ -39,6 +42,9 @@ void copy_dir(const char* source_folder, const char* target_folder);
|
|||
#endif
|
||||
|
||||
#ifdef WIN32
|
||||
#ifndef PATH_MAX
|
||||
#define PATH_MAX MAX_PATH
|
||||
#endif
|
||||
#include <Shlwapi.h>
|
||||
#pragma comment(lib, "comdlg32.lib")
|
||||
#pragma comment(lib, "ole32.lib")
|
||||
|
@ -190,3 +196,5 @@ void copy_dir(const char* src_path, const char* dst_path) {
|
|||
ftw(src_path, copy_file, 20);
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
Loading…
Reference in a new issue