use nodecl

This commit is contained in:
ringabout
2025-01-08 19:53:43 +08:00
parent c1f99aa362
commit ce20f1b31a

View File

@@ -113,13 +113,13 @@ elif defined(windows) or defined(dos):
#
when defined(cpp):
type
THINSTANCE {.importc: "HINSTANCE".} = object
THINSTANCE {.importc: "HINSTANCE", nodecl.} = object
x: pointer
proc getProcAddress(lib: THINSTANCE, name: cstring): ProcAddr {.
importcpp: "(void*)GetProcAddress(@)", header: "<windows.h>", stdcall.}
else:
type
THINSTANCE {.importc: "HINSTANCE".} = pointer
THINSTANCE {.importc: "HINSTANCE", nodecl.} = pointer
proc getProcAddress(lib: THINSTANCE, name: cstring): ProcAddr {.
importc: "GetProcAddress", header: "<windows.h>", stdcall.}