Fixed Linux build

This commit is contained in:
Matt Pharoah
2025-04-10 18:59:31 -04:00
parent fecf75f229
commit 541143bd53

View File

@@ -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
}
}