LibC: Fix errno to work with shared libraries

This commit is contained in:
2024-09-04 21:16:04 +03:00
parent 1138ec77ca
commit 0bb44d7b75
4 changed files with 11 additions and 4 deletions

View File

@@ -8,8 +8,6 @@
#include <stdlib.h>
#include <string.h>
int errno = 0;
void* memccpy(void* __restrict s1, const void* __restrict s2, int c, size_t n)
{
unsigned char* dst = static_cast<unsigned char*>(s1);