diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json index b26d9df..3af70bf 100644 --- a/.vscode/c_cpp_properties.json +++ b/.vscode/c_cpp_properties.json @@ -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" }, { diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..578d1c7 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,9 @@ +{ + "files.associations": { + "time.h": "c", + "signal.h": "c", + "execinfo.h": "c", + "dlfcn.h": "c", + "siginfo_t.h": "c" + } +} \ No newline at end of file diff --git a/src/util.c b/src/util.c index f09f39c..0c3988c 100644 --- a/src/util.c +++ b/src/util.c @@ -5,6 +5,7 @@ #include #include +#include #include "util.h" ///////////////////////////// @@ -78,6 +79,7 @@ void Time_Pause(int pausa) { } while (tend >= t); } #else +#include ///////////////////////////// // Time_GetTime // @@ -249,6 +251,7 @@ void Exceptions_Init() {} #include #include #include +#include void Exception_Signal(int senhal, siginfo_t *info, void *ptr) { int kill_self = 0;