Skip to content

Commit d756b9f

Browse files
committed
[U32] Clang workaround
1 parent e96c32c commit d756b9f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

dlls/user32/userMain.hexa

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2023 Oleh Petrenko
1+
// Copyright (C) 2023-2025 Oleh Petrenko
22
//
33
// This program is free software: you can redistribute it and/or modify
44
// it under the terms of the GNU Lesser General Public License as published by
@@ -13,7 +13,6 @@
1313
// along with this program. If not, see <https://www.gnu.org/licenses/>.
1414

1515
// Entry point of the project
16-
1716
@customHeader('
1817
#define HEXA_NEW(z) HeapAlloc(0,0,z)
1918
void *tmemcpy(void *dest, const void *src, uint64_t count) {
@@ -29,6 +28,12 @@
2928
// TODO
3029
#define memcpy(z,u,x) tmemcpy(z,u,x)
3130

31+
// Clang workaround
32+
void __chkstk(void) asm("__chkstk");
33+
void __chkstk(void) {
34+
// tofitaDebugLog_(L"__chkstk called", 0, 0);
35+
}
36+
3237
#define wprintf(z,...) {}
3338
#define HEAP_ZERO_MEMORY 0
3439
#define fflush(z) {}

0 commit comments

Comments
 (0)