mirror of
https://github.com/reactos/reactos.git
synced 2025-05-18 16:51:18 +00:00
[UCRT] Add GCC compatible __FUNCTIONW__
This commit is contained in:
parent
589bbcaa08
commit
51e6ce3aa7
1 changed files with 11 additions and 0 deletions
|
@ -280,7 +280,18 @@ extern "C++"
|
|||
#define _CRT_SIZE_MAX ((size_t)-1)
|
||||
|
||||
#define __FILEW__ _CRT_WIDE(__FILE__)
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#define __FUNCTIONW__ _CRT_WIDE(__FUNCTION__)
|
||||
#else // _MSC_VER
|
||||
#define __FUNCTIONW__ \
|
||||
({ \
|
||||
static wchar_t __funcw__[sizeof(__func__)]; \
|
||||
for (size_t i = 0; i < sizeof(__func__); i++) \
|
||||
__funcw__[i] = __func__[i]; \
|
||||
__funcw__; \
|
||||
})
|
||||
#endif // _MSC_VER
|
||||
|
||||
#ifdef __cplusplus
|
||||
#ifndef _STATIC_ASSERT
|
||||
|
|
Loading…
Reference in a new issue