port: linux support; horrible hack to avoid segmented address funny moments

linux support only tested a little bit in a VM
This commit is contained in:
fgsfds committed 2023-08-04 23:44:20 +02:00
1 parent 172f943891
commit ea8e49c870
14 files changed
+141 -108

No files matched your search

+3 -3
View File
@@ -80,9 +80,9 @@ extern "C" {
/* byte string operations */
extern void bcopy(const void *, void *, int);
extern int bcmp(const void *, const void *, int);
extern void bzero(void *, int);
extern void bcopy(const void *, void *, size_t);
extern int bcmp(const void *, const void *, size_t);
extern void bzero(void *, size_t);
/* Printf */
File renamed without changes.
+8
View File
@@ -57,6 +57,8 @@ typedef volatile long long vs64; /* signed 64-bit */
typedef float f32; /* single prec floating point */
typedef double f64; /* double prec floating point */
#ifdef PLATFORM_N64
#if !defined(_SIZE_T) && !defined(_SIZE_T_) && !defined(_SIZE_T_DEF)
#define _SIZE_T
#define _SIZE_T_DEF /* exeGCC size_t define label */
@@ -68,6 +70,12 @@ typedef unsigned long size_t;
#endif
#endif
#else
#include <stddef.h>
#endif
#endif /* _LANGUAGE_C */