Merge pull request #3903 from kosz78/devel

Fixed THINSTANCE declaration in dynlib.nim for VS compiler
This commit is contained in:
Andreas Rumpf 2016-03-05 14:39:53 +01:00
commit 267a2756e4

View file

@ -78,6 +78,11 @@ elif defined(windows) or defined(dos):
# Native Windows Implementation # Native Windows Implementation
# ======================================================================= # =======================================================================
# #
when defined(cpp):
type
THINSTANCE {.importc: "HINSTANCE".} = object
x: pointer
else:
type type
THINSTANCE {.importc: "HINSTANCE".} = pointer THINSTANCE {.importc: "HINSTANCE".} = pointer