mirror of
https://github.com/vishapoberon/compiler.git
synced 2026-04-06 19:12:25 +00:00
Fix ref to undefined uint32_t on windows and rebuild bootstrap.
This commit is contained in:
parent
d73e80cd09
commit
3c36cbd111
8 changed files with 13 additions and 3 deletions
|
|
@ -32,6 +32,8 @@ typedef unsigned char SYSTEM_CARD8;
|
|||
typedef unsigned int size_t;
|
||||
#endif
|
||||
|
||||
#define _SIZE_T_DEFINED_ // For OpenBSD
|
||||
|
||||
void *memcpy(void *dest, const void *source, size_t size);
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -32,6 +32,8 @@ typedef unsigned char SYSTEM_CARD8;
|
|||
typedef unsigned int size_t;
|
||||
#endif
|
||||
|
||||
#define _SIZE_T_DEFINED_ // For OpenBSD
|
||||
|
||||
void *memcpy(void *dest, const void *source, size_t size);
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -32,6 +32,8 @@ typedef unsigned char SYSTEM_CARD8;
|
|||
typedef unsigned int size_t;
|
||||
#endif
|
||||
|
||||
#define _SIZE_T_DEFINED_ // For OpenBSD
|
||||
|
||||
void *memcpy(void *dest, const void *source, size_t size);
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ export BOOLEAN Platform_getEnv (CHAR *var, LONGINT var__len, CHAR *val, LONGINT
|
|||
#define Platform_ERRORWRITEPROTECT() ERROR_WRITE_PROTECT
|
||||
#define Platform_ETIMEDOUT() WSAETIMEDOUT
|
||||
extern void Heap_InitHeap();
|
||||
#define Platform_GetTickCount() (LONGINT)(uint32_t)GetTickCount()
|
||||
#define Platform_GetTickCount() (LONGINT)(SYSTEM_CARD32)GetTickCount()
|
||||
#define Platform_HeapInitHeap() Heap_InitHeap()
|
||||
#define Platform_SetInterruptHandler(h) SystemSetInterruptHandler((uintptr_t)h)
|
||||
#define Platform_SetQuitHandler(h) SystemSetQuitHandler((uintptr_t)h)
|
||||
|
|
|
|||
|
|
@ -32,6 +32,8 @@ typedef unsigned char SYSTEM_CARD8;
|
|||
typedef unsigned int size_t;
|
||||
#endif
|
||||
|
||||
#define _SIZE_T_DEFINED_ // For OpenBSD
|
||||
|
||||
void *memcpy(void *dest, const void *source, size_t size);
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ export BOOLEAN Platform_getEnv (CHAR *var, LONGINT var__len, CHAR *val, LONGINT
|
|||
#define Platform_ERRORWRITEPROTECT() ERROR_WRITE_PROTECT
|
||||
#define Platform_ETIMEDOUT() WSAETIMEDOUT
|
||||
extern void Heap_InitHeap();
|
||||
#define Platform_GetTickCount() (LONGINT)(uint32_t)GetTickCount()
|
||||
#define Platform_GetTickCount() (LONGINT)(SYSTEM_CARD32)GetTickCount()
|
||||
#define Platform_HeapInitHeap() Heap_InitHeap()
|
||||
#define Platform_SetInterruptHandler(h) SystemSetInterruptHandler((uintptr_t)h)
|
||||
#define Platform_SetQuitHandler(h) SystemSetQuitHandler((uintptr_t)h)
|
||||
|
|
|
|||
|
|
@ -32,6 +32,8 @@ typedef unsigned char SYSTEM_CARD8;
|
|||
typedef unsigned int size_t;
|
||||
#endif
|
||||
|
||||
#define _SIZE_T_DEFINED_ // For OpenBSD
|
||||
|
||||
void *memcpy(void *dest, const void *source, size_t size);
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -232,7 +232,7 @@ BEGIN
|
|||
YMDHMStoClock(styear(), stmon(), stmday(), sthour(), stmin(), stsec(), t, d);
|
||||
END GetClock;
|
||||
|
||||
PROCEDURE -GetTickCount(): LONGINT "(LONGINT)(uint32_t)GetTickCount()";
|
||||
PROCEDURE -GetTickCount(): LONGINT "(LONGINT)(SYSTEM_CARD32)GetTickCount()";
|
||||
|
||||
PROCEDURE Time*(): LONGINT;
|
||||
VAR ms: LONGINT;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue