diff options
| author | navewindre <nw@moneybot.cc> | 2024-07-17 08:36:51 +0200 |
|---|---|---|
| committer | navewindre <nw@moneybot.cc> | 2024-07-17 08:36:51 +0200 |
| commit | 819cf3e4e8abb5ad41d8830155fc20bd833b21e8 (patch) | |
| tree | 463951e47fc2937979542c8c46d14b9e0da827ce /src/util.h | |
| parent | 4c8b52fc94c04c4b3d338c2501971ae348f5b3e5 (diff) | |
render wip
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; |
