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:
@@ -500,7 +500,7 @@ WXDLLIMPEXP_BASE int wxCRT_FputcW(wchar_t wc, FILE *stream);
|
|||||||
------------------------------------------------------------------------- */
|
------------------------------------------------------------------------- */
|
||||||
|
|
||||||
#define wxCRT_GetenvA getenv
|
#define wxCRT_GetenvA getenv
|
||||||
#ifdef _tgetenv
|
#ifdef wxHAVE_TCHAR_SUPPORT
|
||||||
#define wxCRT_GetenvW _wgetenv
|
#define wxCRT_GetenvW _wgetenv
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -510,8 +510,7 @@ WXDLLIMPEXP_BASE wchar_t * wxCRT_GetenvW(const wchar_t *name);
|
|||||||
|
|
||||||
|
|
||||||
#define wxCRT_SystemA system
|
#define wxCRT_SystemA system
|
||||||
/* mingw32 doesn't provide _tsystem() or _wsystem(): */
|
#ifdef wxHAVE_TCHAR_SUPPORT
|
||||||
#if defined(_tsystem)
|
|
||||||
#define wxCRT_SystemW _wsystem
|
#define wxCRT_SystemW _wsystem
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user