mirror of
https://github.com/tihmstar/futurerestore.git
synced 2025-01-03 19:35:28 +00:00
fixing windows stuff
This commit is contained in:
parent
6332b5b64f
commit
7815036ab0
|
@ -6,6 +6,13 @@
|
||||||
// Copyright © 2016 tihmstar. All rights reserved.
|
// Copyright © 2016 tihmstar. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
|
#if defined _WIN32 || defined __CYGWIN__
|
||||||
|
#ifndef WIN32
|
||||||
|
//make sure WIN32 is defined if compiling for windows
|
||||||
|
#define WIN32
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -23,11 +30,12 @@
|
||||||
#include "restore.h"
|
#include "restore.h"
|
||||||
#include "tsschecker.h"
|
#include "tsschecker.h"
|
||||||
|
|
||||||
|
|
||||||
|
//(re)define __mkdir
|
||||||
#ifdef __mkdir
|
#ifdef __mkdir
|
||||||
#undef __mkdir
|
#undef __mkdir
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef WIN32
|
||||||
#if defined _WIN32 || defined __CYGWIN__ || defined WIN32
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#define __mkdir(path, mode) mkdir(path)
|
#define __mkdir(path, mode) mkdir(path)
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in a new issue