Added checks for CPP
This commit is contained in:
parent
2693179834
commit
6f0cab7060
1 changed files with 7 additions and 3 deletions
|
|
@ -78,9 +78,13 @@ elif defined(windows) or defined(dos):
|
|||
# Native Windows Implementation
|
||||
# =======================================================================
|
||||
#
|
||||
when defined(cpp):
|
||||
type
|
||||
THINSTANCE {.importc: "HINSTANCE".} = object
|
||||
x: pointer
|
||||
else:
|
||||
type
|
||||
THINSTANCE {.importc: "HINSTANCE".} = pointer
|
||||
|
||||
proc FreeLibrary(lib: THINSTANCE) {.importc, header: "<windows.h>", stdcall.}
|
||||
proc winLoadLibrary(path: cstring): THINSTANCE {.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue