Fixes for building on Linux
This commit is contained in:
6
.vscode/c_cpp_properties.json
vendored
6
.vscode/c_cpp_properties.json
vendored
@@ -20,9 +20,9 @@
|
||||
"${workspaceFolder}",
|
||||
"${workspaceFolder}/src/"
|
||||
],
|
||||
"intelliSenseMode": "clang-x64",
|
||||
"compilerPath": "/usr/bin/clang",
|
||||
"cStandard": "c11",
|
||||
"intelliSenseMode": "linux-gcc-x64",
|
||||
"compilerPath": "/usr/bin/gcc",
|
||||
"cStandard": "c17",
|
||||
"cppStandard": "c++17"
|
||||
},
|
||||
{
|
||||
|
||||
9
.vscode/settings.json
vendored
Normal file
9
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"files.associations": {
|
||||
"time.h": "c",
|
||||
"signal.h": "c",
|
||||
"execinfo.h": "c",
|
||||
"dlfcn.h": "c",
|
||||
"siginfo_t.h": "c"
|
||||
}
|
||||
}
|
||||
@@ -5,6 +5,7 @@
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "util.h"
|
||||
|
||||
/////////////////////////////
|
||||
@@ -78,6 +79,7 @@ void Time_Pause(int pausa) {
|
||||
} while (tend >= t);
|
||||
}
|
||||
#else
|
||||
#include <sys/time.h>
|
||||
/////////////////////////////
|
||||
// Time_GetTime
|
||||
//
|
||||
@@ -249,6 +251,7 @@ void Exceptions_Init() {}
|
||||
#include <dlfcn.h>
|
||||
#include <execinfo.h>
|
||||
#include <memory.h>
|
||||
#include <unistd.h>
|
||||
|
||||
void Exception_Signal(int senhal, siginfo_t *info, void *ptr) {
|
||||
int kill_self = 0;
|
||||
|
||||
Reference in New Issue
Block a user