Test for wxHAVE_TCHAR_SUPPORT instead of individual _txxx()
This is more consistent and slightly simpler. Testing for _tsystem() explicitly is not needed any more as _wsystem() is supported since MinGW 3.4.5, i.e. certainly present in all supported MinGW versions. See #18958.
This commit is contained in:
parent
7fe7ebd5e4
commit
b1a8ce8354
@ -500,7 +500,7 @@ WXDLLIMPEXP_BASE int wxCRT_FputcW(wchar_t wc, FILE *stream);
|
||||
------------------------------------------------------------------------- */
|
||||
|
||||
#define wxCRT_GetenvA getenv
|
||||
#ifdef _tgetenv
|
||||
#ifdef wxHAVE_TCHAR_SUPPORT
|
||||
#define wxCRT_GetenvW _wgetenv
|
||||
#endif
|
||||
|
||||
@ -510,8 +510,7 @@ WXDLLIMPEXP_BASE wchar_t * wxCRT_GetenvW(const wchar_t *name);
|
||||
|
||||
|
||||
#define wxCRT_SystemA system
|
||||
/* mingw32 doesn't provide _tsystem() or _wsystem(): */
|
||||
#if defined(_tsystem)
|
||||
#ifdef wxHAVE_TCHAR_SUPPORT
|
||||
#define wxCRT_SystemW _wsystem
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user