diff options
Diffstat (limited to 'src/util.h')
| -rw-r--r-- | src/util.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -4,6 +4,7 @@ #pragma once #include <chrono> #include <windows.h> +#include <string.h> #include <stdio.h> #include <thread> @@ -33,6 +34,7 @@ struct STR { char data[size]{}; }; +#ifndef _WIN64 template < U32 size > struct WSTR { WSTR() = default; @@ -44,6 +46,7 @@ struct WSTR { wchar_t data[size]{}; }; +#endif template < typename t > STR< 32 > u_num_to_string_hex( t num ) { @@ -72,6 +75,7 @@ STR< size > u_widebyte_to_ansi( const wchar_t* str ) { return ret; } +#ifndef _WIN64 template < U32 size = 128 > WSTR< size > u_ansi_to_widebyte( const char* str ) { WSTR< size > ret; @@ -82,6 +86,7 @@ WSTR< size > u_ansi_to_widebyte( const char* str ) { return ret; } +#endif inline U8 u_set_debug_privilege() { HANDLE token; |
