mirror of https://github.com/AxioDL/kabufuda.git
Windows build fixes
This commit is contained in:
parent
e84546be2d
commit
bd1c3e99f2
|
@ -208,8 +208,8 @@ public:
|
||||||
std::wstring operator+(const std::wstring_view other) const { return m_sys + other.data(); }
|
std::wstring operator+(const std::wstring_view other) const { return m_sys + other.data(); }
|
||||||
};
|
};
|
||||||
inline std::wstring operator+(const std::wstring_view lhs, const SystemStringConv& rhs) { return std::wstring(lhs) + rhs.c_str(); }
|
inline std::wstring operator+(const std::wstring_view lhs, const SystemStringConv& rhs) { return std::wstring(lhs) + rhs.c_str(); }
|
||||||
#ifndef _S
|
#ifndef _SYS_STR
|
||||||
#define _S(val) L##val
|
#define _SYS_STR(val) L##val
|
||||||
#endif
|
#endif
|
||||||
typedef struct _stat Sstat;
|
typedef struct _stat Sstat;
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
kabufuda::Card mc{"GM8E", "01"};
|
kabufuda::Card mc{"GM8E", "01"};
|
||||||
mc.open(_S("test.USA.raw"));
|
mc.open(_SYS_STR("test.USA.raw"));
|
||||||
mc.format(kabufuda::ECardSlot::SlotA, kabufuda::ECardSize::Card2043Mb);
|
mc.format(kabufuda::ECardSlot::SlotA, kabufuda::ECardSize::Card2043Mb);
|
||||||
uint64_t a = 0;
|
uint64_t a = 0;
|
||||||
mc.getSerial(a);
|
mc.getSerial(a);
|
||||||
|
|
Loading…
Reference in New Issue