From 3db8287bbb38a31005bc7fe5c38d0edfe5402c6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Wed, 30 Mar 2016 14:24:47 -0700 Subject: [PATCH] Cleanup. --- include/bx/config.h | 7 ++++++- include/bx/crtimpl.h | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/include/bx/config.h b/include/bx/config.h index 400d17c..5991770 100644 --- a/include/bx/config.h +++ b/include/bx/config.h @@ -25,7 +25,12 @@ #endif // BX_CONFIG_CRT_FILE_READER_WRITER #ifndef BX_CONFIG_CRT_PROCESS -# define BX_CONFIG_CRT_PROCESS !(BX_PLATFORM_NACL || BX_PLATFORM_EMSCRIPTEN) +# define BX_CONFIG_CRT_PROCESS !(0 \ + || BX_PLATFORM_EMSCRIPTEN \ + || BX_PLATFORM_NACL \ + || BX_PLATFORM_WINRT \ + || BX_PLATFORM_XBOXONE \ + ) #endif // BX_CONFIG_CRT_PROCESS #ifndef BX_CONFIG_SEMAPHORE_PTHREAD diff --git a/include/bx/crtimpl.h b/include/bx/crtimpl.h index c52d1a1..a482033 100644 --- a/include/bx/crtimpl.h +++ b/include/bx/crtimpl.h @@ -194,10 +194,10 @@ namespace bx #if BX_CONFIG_CRT_PROCESS -#if BX_COMPILER_MSVC +#if BX_COMPILER_MSVC_COMPATIBLE # define popen _popen # define pclose _pclose -#endif // BX_COMPILER_MSVC +#endif // BX_COMPILER_MSVC_COMPATIBLE class ProcessReader : public ReaderOpenI, public CloserI, public ReaderI {