mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-05 20:47:53 +00:00
use nodecl
This commit is contained in:
@@ -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.}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user