mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
libs/vkd3d: Support both native and Win32 wchar_t.
This commit is contained in:
@@ -37,7 +37,7 @@ void vkd3d_dbg_printf(enum vkd3d_dbg_level level, const char *function,
|
||||
|
||||
const char *vkd3d_dbg_sprintf(const char *fmt, ...) VKD3D_PRINTF_FUNC(1, 2) DECLSPEC_HIDDEN;
|
||||
const char *debugstr_a(const char *str) DECLSPEC_HIDDEN;
|
||||
const char *debugstr_w(const WCHAR *wstr) DECLSPEC_HIDDEN;
|
||||
const char *debugstr_w(const WCHAR *wstr, size_t wchar_size) DECLSPEC_HIDDEN;
|
||||
|
||||
#define VKD3D_DBG_LOG(level) \
|
||||
do { \
|
||||
|
@@ -34,6 +34,7 @@ struct vkd3d_device_create_info
|
||||
{
|
||||
D3D_FEATURE_LEVEL minimum_feature_level;
|
||||
vkd3d_signal_event_pfn signal_event_pfn;
|
||||
size_t wchar_size;
|
||||
};
|
||||
|
||||
/* resource flags */
|
||||
|
@@ -21,6 +21,10 @@
|
||||
|
||||
#if !defined(_WIN32) || defined(__WIDL__)
|
||||
|
||||
# if !defined(__WIDL__) && !defined(VKD3D_WIN32_WCHAR)
|
||||
# include <wchar.h>
|
||||
# endif
|
||||
|
||||
# ifdef __GNUC__
|
||||
# define DECLSPEC_ALIGN(x) __attribute__((aligned(x)))
|
||||
# endif
|
||||
@@ -72,7 +76,11 @@ typedef unsigned long ULONG_PTR;
|
||||
|
||||
typedef ULONG_PTR SIZE_T;
|
||||
|
||||
# ifdef VKD3D_WIN32_WCHAR
|
||||
typedef unsigned short WCHAR;
|
||||
# else
|
||||
typedef wchar_t WCHAR;
|
||||
# endif /* VKD3D_WIN32_WCHAR */
|
||||
typedef void *HANDLE;
|
||||
|
||||
/* GUID */
|
||||
|
Reference in New Issue
Block a user