Fix wchar_t for nim check
This commit is contained in:
parent
e9120eee78
commit
d3b558b291
1 changed files with 9 additions and 10 deletions
|
|
@ -16,22 +16,21 @@ when (NimMajor, NimMinor, NimPatch) < (0, 19, 9):
|
||||||
type
|
type
|
||||||
time_t* = Time
|
time_t* = Time
|
||||||
time64_t* = Time
|
time64_t* = Time
|
||||||
wchar_t* {.importc.} = object
|
|
||||||
else:
|
else:
|
||||||
import std/time_t as time_t_temp
|
import std/time_t as time_t_temp
|
||||||
type
|
type
|
||||||
time_t* = time_t_temp.Time
|
time_t* = time_t_temp.Time
|
||||||
time64_t* = time_t_temp.Time
|
time64_t* = time_t_temp.Time
|
||||||
|
|
||||||
when defined(c) or defined(nimdoc):
|
when defined(cpp):
|
||||||
# http://www.cplusplus.com/reference/cwchar/wchar_t/
|
# http://www.cplusplus.com/reference/cwchar/wchar_t/
|
||||||
# In C++, wchar_t is a distinct fundamental type (and thus it is
|
# In C++, wchar_t is a distinct fundamental type (and thus it is
|
||||||
# not defined in <cwchar> nor any other header).
|
# not defined in <cwchar> nor any other header).
|
||||||
type
|
type
|
||||||
wchar_t* {.importc, header:"<cwchar>".} = object
|
wchar_t* {.importc.} = object
|
||||||
elif defined(cpp):
|
else:
|
||||||
type
|
type
|
||||||
wchar_t* {.importc.} = object
|
wchar_t* {.importc, header:"<cwchar>".} = object
|
||||||
|
|
||||||
type
|
type
|
||||||
ptrdiff_t* = ByteAddress
|
ptrdiff_t* = ByteAddress
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue