mirror of
https://gitlab.com/parallel-launcher/parallel-launcher
synced 2025-10-05 16:12:45 +02:00
Fixed Linux build
This commit is contained in:
16
sdl-proxy.c
16
sdl-proxy.c
@@ -4,10 +4,13 @@
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#ifdef _WIN32
|
||||
#if defined(_WIN32)
|
||||
#include <Windows.h>
|
||||
#else
|
||||
#elif defined(__APPLE__)
|
||||
#include <unistd.h>
|
||||
#else
|
||||
#include <threads.h>
|
||||
#include <time.h>
|
||||
#endif
|
||||
|
||||
#define SPE_CONNECT 0
|
||||
@@ -203,10 +206,15 @@ int main( int argc, char *argv[] ) {
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
#if defined(_WIN32)
|
||||
Sleep( 10 );
|
||||
#else
|
||||
#elif defined(__APPLE__)
|
||||
usleep( 10000u );
|
||||
#else
|
||||
thrd_sleep(&(struct timespec){
|
||||
.tv_sec = 0,
|
||||
.tv_nsec = 10000000ll
|
||||
}, NULL);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user