From 819cf3e4e8abb5ad41d8830155fc20bd833b21e8 Mon Sep 17 00:00:00 2001 From: navewindre Date: Wed, 17 Jul 2024 08:36:51 +0200 Subject: render wip --- src/util.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/util.h') diff --git a/src/util.h b/src/util.h index 1277047..0ee2a8a 100644 --- a/src/util.h +++ b/src/util.h @@ -4,6 +4,7 @@ #pragma once #include #include +#include #include #include @@ -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; -- cgit v1.2.3