Added checks for CPP

This commit is contained in:
Konstantin Zaitsev
2016-02-28 17:25:12 +06:00
parent 2693179834
commit 6f0cab7060

View File

@@ -78,9 +78,13 @@ elif defined(windows) or defined(dos):
# Native Windows Implementation
# =======================================================================
#
type
THINSTANCE {.importc: "HINSTANCE".} = object
x: pointer
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 {.