[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
GSNativeChar type on Windows
From: |
Frederik Seiffert |
Subject: |
GSNativeChar type on Windows |
Date: |
Thu, 13 Jan 2022 16:44:23 +0100 |
Hi all,
I was wondering: does anyone know of a reason why GSNativeChar is defined as
uint16_t instead of wchar_t in GSConfig.h on Windows?
While they are probably technically the same (both are 16 bit on Windows), the
latter would avoid a bunch of warnings / avoid having to cast when passing
paths to Windows system APIs that expect wchar_t. This also applies to client
code as this type is returned by NSString fileSystemRepresentation.
If there’s no objections I’d like to change it to wchar_t.
Thanks,
Frederik
- GSNativeChar type on Windows,
Frederik Seiffert <=