From b91a537c355f261ac448a85ccb50c43f5193be52 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Tue, 5 Nov 2019 20:25:43 +0300 Subject: [PATCH] it's better to do this locally and update v.c manually --- fns.h | 6 ++++-- vlib/compiler/cheaders.v | 7 ++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/fns.h b/fns.h index e8dec18b83..bfe8c47616 100644 --- a/fns.h +++ b/fns.h @@ -1,6 +1,7 @@ // -//void sigaction(); -//void sigemptyset(); +/* +void sigaction(); +void sigemptyset(); // void* memcpy(); @@ -8,3 +9,4 @@ void* memmove(); void* memset(); unsigned long strlen(const char*); char* strerror(int); +*/ diff --git a/vlib/compiler/cheaders.v b/vlib/compiler/cheaders.v index df326d6fe5..8172c77dd6 100644 --- a/vlib/compiler/cheaders.v +++ b/vlib/compiler/cheaders.v @@ -6,13 +6,18 @@ CommonCHeaders = ' #include // TODO remove all these includes, define all function signatures and types manually #include -#include "fns.h" + +//#include "fns.h" +#include #include // for va_list #include // int64_t etc +#include // memcpy #ifndef _WIN32 #include +#include // tolower #include +#include // sleep #else #if defined(__MSVCRT_VERSION__) && __MSVCRT_VERSION__ < __MSVCR90_DLL #error Please upgrade your MinGW distribution to use msvcr90.dll or later.