master #1

Merged
Timerix merged 3 commits from master into main 2024-07-26 12:41:01 +00:00
6 changed files with 6 additions and 6 deletions

0
build.sh Normal file → Executable file
View File

0
detect_arch.sh Normal file → Executable file
View File

0
detect_os.sh Normal file → Executable file
View File

2
kerep/build.sh Normal file → Executable file
View File

@ -3,7 +3,7 @@ set -eo pipefail
CMP="gcc" CMP="gcc"
WARN="-std=c11 -Wall -Wno-discarded-qualifiers -Wno-unused-parameter" WARN="-std=c11 -Wall -Wno-discarded-qualifiers -Wno-unused-parameter"
ARGS="-O2 -flto=auto -fpic -fdata-sections -ffunction-sections" ARGS="-O2"
SRC="$(find src -name '*.c')" SRC="$(find src -name '*.c')"
OS=$(../detect_os.sh) OS=$(../detect_os.sh)

View File

@ -1,4 +1,4 @@
#include "process.h" #include "Process.h"
#ifndef USE_WINDOWS_PROCESS_API #ifndef USE_WINDOWS_PROCESS_API
@ -6,7 +6,7 @@
#include <unistd.h> #include <unistd.h>
#include <sys/wait.h> #include <sys/wait.h>
#include <errno.h> #include <errno.h>
extern int kill (__pid_t __pid, int __sig) __THROW; extern int kill (__pid_t __pid, int __sig);
extern void * memset(void * __dst, int __val, size_t __n); extern void * memset(void * __dst, int __val, size_t __n);
#define throw_if_negative(expr) if(expr < 0) throw(cptr_concat(#expr " exited with error ", toString_i64(errno))); #define throw_if_negative(expr) if(expr < 0) throw(cptr_concat(#expr " exited with error ", toString_i64(errno)));

View File

@ -1,4 +1,4 @@
#include "process.h" #include "Process.h"
#ifdef USE_WINDOWS_PROCESS_API #ifdef USE_WINDOWS_PROCESS_API
#include <windows.h> #include <windows.h>