mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-05-06 04:43:33 +02:00
Fixed Windows compile errors.
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user