mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-31 12:24:10 -08:00
C: minor fixes for Linux
This commit is contained in:
parent
a53f59e147
commit
5643e82a3d
|
@ -7,6 +7,11 @@
|
|||
#include "memory.h"
|
||||
#include "exceptions.h"
|
||||
|
||||
#if TEAVM_MEMORY_TRACE
|
||||
#include "heaptrace.h"
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
|
||||
typedef struct TeaVM_Object {
|
||||
int32_t header;
|
||||
int32_t hash;
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#ifdef __GNUC__
|
||||
#undef TEAVM_UNIX
|
||||
#define TEAVM_UNIX 1
|
||||
#include <stdalign.h>
|
||||
#endif
|
||||
|
||||
#ifndef TEAVM_USE_SETJMP
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#pragma once
|
||||
#include "definitions.h"
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
|
||||
#if TEAVM_USE_SETJMP
|
||||
#include <setjmp.h>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#include "heaptrace.h"
|
||||
#include "core.h"
|
||||
#include "definitions.h"
|
||||
#include "memory.h"
|
||||
#include <string.h>
|
||||
#include <stdint.h>
|
||||
#include <inttypes.h>
|
||||
|
|
|
@ -11,6 +11,10 @@
|
|||
#include <Windows.h>
|
||||
#endif
|
||||
|
||||
#if TEAVM_MEMORY_TRACE
|
||||
#include "heaptrace.h"
|
||||
#endif
|
||||
|
||||
void* teavm_gc_heapAddress = NULL;
|
||||
void* teavm_gc_gcStorageAddress = NULL;
|
||||
int32_t teavm_gc_gcStorageSize = INT32_C(0);
|
||||
|
|
Loading…
Reference in New Issue
Block a user