This repository was archived by the owner on Feb 19, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try using workaround from cacticouncil/lilypad
- Loading branch information
Showing
12 changed files
with
88 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#pragma once | ||
|
||
#define assert(ignore) ((void)0) | ||
#define static_assert(cnd, msg) assert(cnd && msg) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#pragma once | ||
|
||
int isprint(int c); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#pragma once | ||
|
||
#define PRId32 "d" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#pragma once | ||
|
||
#define bool _Bool | ||
#define true 1 | ||
#define false 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#pragma once | ||
|
||
typedef signed char int8_t; | ||
typedef short int16_t; | ||
typedef long int32_t; | ||
typedef long long int64_t; | ||
|
||
typedef unsigned char uint8_t; | ||
typedef unsigned short uint16_t; | ||
typedef unsigned long uint32_t; | ||
typedef unsigned long long uint64_t; | ||
|
||
typedef unsigned long size_t; | ||
|
||
typedef unsigned int uintptr_t; | ||
|
||
#define UINT8_MAX 0xff | ||
#define UINT16_MAX 0xffff | ||
#define UINT32_MAX 0xffffffff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#pragma once | ||
|
||
// just some filler type | ||
#define FILE void | ||
|
||
#define stdin NULL | ||
#define stdout NULL | ||
#define stderr NULL | ||
|
||
int fprintf(FILE *__restrict__, const char *__restrict__, ...); | ||
int fputs(const char *__restrict, FILE *__restrict); | ||
int fputc(int, FILE *); | ||
FILE *fdopen(int, const char *); | ||
int fclose(FILE *); | ||
|
||
int vsnprintf(char *s, unsigned long n, const char *format, ...); | ||
|
||
#define sprintf(str, ...) 0 | ||
#define snprintf(str, len, ...) 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#pragma once | ||
|
||
#include <stdint.h> | ||
|
||
#define NULL ((void*)0) | ||
|
||
void* malloc(size_t size); | ||
void* calloc(size_t nmemb, size_t size); | ||
void free(void* ptr); | ||
void* realloc(void* ptr, size_t size); | ||
|
||
void abort(void); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#pragma once | ||
|
||
void *memcpy(void *dest, const void *src, unsigned long n); | ||
void *memmove(void *dest, const void *src, unsigned long n); | ||
void *memset(void *s, int c, unsigned long n); | ||
int memcmp(const void *ptr1, const void *ptr2, unsigned long n); | ||
int strncmp(const char *s1, const char *s2, unsigned long n); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#pragma once | ||
|
||
typedef unsigned long clock_t; | ||
#define CLOCKS_PER_SEC ((clock_t)1000000) | ||
clock_t clock(void); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#pragma once | ||
|
||
int dup(int); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#pragma once | ||
|
||
typedef __WCHAR_TYPE__ wchar_t; | ||
typedef __WINT_TYPE__ wint_t; | ||
|
||
int iswspace(wchar_t ch); | ||
int iswalnum(wint_t _wc); |