@@ -41,7 +41,7 @@ SwapChainD3D12Impl::SwapChainD3D12Impl(IReferenceCounters *pRefCounters,
4141 m_pBackBufferRTV (STD_ALLOCATOR_RAW_MEM(RefCntAutoPtr<ITextureView>, GetRawAllocator(), " Allocator for vector<RefCntAutoPtr<ITextureView>>" ))
4242{
4343
44- #ifdef PLATFORM_WIN32
44+ #if PLATFORM_WIN32
4545 auto hWnd = reinterpret_cast <HWND>(pNativeWndHandle);
4646
4747 if ( m_SwapChainDesc.Width == 0 || m_SwapChainDesc.Height == 0 )
@@ -82,14 +82,14 @@ SwapChainD3D12Impl::SwapChainD3D12Impl(IReferenceCounters *pRefCounters,
8282 CHECK_D3D_RESULT_THROW (hr, " Failed to create DXGI factory" )
8383
8484 auto *pd3d12CmdQueue = pRenderDeviceD3D12->GetCmdQueue ()->GetD3D12CommandQueue ();
85- #if defined( PLATFORM_WIN32 )
85+ #if PLATFORM_WIN32
8686 hr = factory->CreateSwapChainForHwnd (pd3d12CmdQueue, hWnd, &swapChainDesc, nullptr , nullptr , &pSwapChain1);
8787 CHECK_D3D_RESULT_THROW ( hr, " Failed to create Swap Chain" );
8888
8989 // This sample does not support fullscreen transitions.
9090 hr = factory->MakeWindowAssociation (hWnd, DXGI_MWA_NO_WINDOW_CHANGES | DXGI_MWA_NO_ALT_ENTER);
9191
92- #elif defined( PLATFORM_UNIVERSAL_WINDOWS )
92+ #elif PLATFORM_UNIVERSAL_WINDOWS
9393
9494 hr = factory->CreateSwapChainForCoreWindow (
9595 pd3d12CmdQueue,
@@ -168,7 +168,7 @@ IMPLEMENT_QUERY_INTERFACE( SwapChainD3D12Impl, IID_SwapChainD3D12, TSwapChainBas
168168void SwapChainD3D12Impl::Present ()
169169{
170170 UINT SyncInterval = 0 ;
171- #ifdef PLATFORM_UNIVERSAL_WINDOWS
171+ #if PLATFORM_UNIVERSAL_WINDOWS
172172 SyncInterval = 1 ; // Interval 0 is not supported on Windows Phone
173173#endif
174174
@@ -196,7 +196,7 @@ void SwapChainD3D12Impl::Present()
196196 pDeviceD3D12->FinishFrame ();
197197
198198#if 0
199- #ifdef PLATFORM_UNIVERSAL_WINDOWS
199+ #if PLATFORM_UNIVERSAL_WINDOWS
200200 // A successful Present call for DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL SwapChains unbinds
201201 // backbuffer 0 from all GPU writeable bind points.
202202 // We need to rebind all render targets to make sure that
0 commit comments