mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-01-28 02:35:23 +01:00
Fixed Windows compile errors.
This commit is contained in:
parent
11c04d6fbc
commit
1061205d4f
@ -22,10 +22,14 @@
|
||||
#include <fstream>
|
||||
#include <algorithm>
|
||||
#include <exception>
|
||||
|
||||
#ifdef __linux
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <Windows.h>
|
||||
#endif
|
||||
|
||||
#ifdef __linux
|
||||
#include <errno.h>
|
||||
#include <cstring>
|
||||
#endif
|
||||
@ -95,7 +99,7 @@ bool CollectionInfo::Save()
|
||||
if ( stat( dir.c_str(), &info ) != 0 )
|
||||
{
|
||||
#if defined(_WIN32) && !defined(__GNUC__)
|
||||
if(!CreateDirectory(dir, NULL))
|
||||
if(!CreateDirectory(dir.c_str(), NULL))
|
||||
{
|
||||
if(ERROR_ALREADY_EXISTS != GetLastError())
|
||||
{
|
||||
|
||||
@ -32,7 +32,7 @@ static bool StartLogging();
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
// Initialize random seed
|
||||
srand( time( NULL ) );
|
||||
srand(static_cast<unsigned int>(time(0)));
|
||||
|
||||
Configuration::initialize();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user