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
|
# Native Windows Implementation
|
||||||
# =======================================================================
|
# =======================================================================
|
||||||
#
|
#
|
||||||
type
|
when defined(cpp):
|
||||||
THINSTANCE {.importc: "HINSTANCE".} = object
|
type
|
||||||
x: pointer
|
THINSTANCE {.importc: "HINSTANCE".} = object
|
||||||
|
x: pointer
|
||||||
|
else:
|
||||||
|
type
|
||||||
|
THINSTANCE {.importc: "HINSTANCE".} = pointer
|
||||||
|
|
||||||
proc FreeLibrary(lib: THINSTANCE) {.importc, header: "<windows.h>", stdcall.}
|
proc FreeLibrary(lib: THINSTANCE) {.importc, header: "<windows.h>", stdcall.}
|
||||||
proc winLoadLibrary(path: cstring): THINSTANCE {.
|
proc winLoadLibrary(path: cstring): THINSTANCE {.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue