// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 #pragma once // Disable unreachable code warning, and deprecated function warnings #pragma warning( disable : 4702 4996 ) #pragma warning( push, 3 ) #pragma warning( disable : 4701 4267 4103 ) #include #include #include #include #include #include #include #include #pragma warning( pop ) // Put all the standard C++ includes here. // Because they never change, they should be in the precompiled header to optimize compile times. #pragma warning( push ) #pragma warning( disable : 4267 ) // Bizarre that MS's standard headers have such warnings... #include #pragma warning( pop ) #include #include #include #include #include #include #include #ifdef base_type #undef base_type #endif TCHAR* GetString( int id ); #if MAX_VERSION_MAJOR >= 15 #define HANDLE_STD_EXCEPTION_MSG( e ) MSTR::FromACP( ( e ).what() ).data() #else #define HANDLE_STD_EXCEPTION_MSG( e ) const_cast( ( e ).what() ) #endif inline bool IsNetworkRenderServer() { return GetCOREInterface()->IsNetworkRenderServer(); }