diff --git a/include/dpp/restresults.h b/include/dpp/restresults.h index 55170c24a4..9033241c5d 100644 --- a/include/dpp/restresults.h +++ b/include/dpp/restresults.h @@ -66,7 +66,14 @@ struct DPP_EXPORT version_checker { } }; +/* + * We need to tell DPP to NOT do the version checker if something from Unreal Engine is defined. + * We have to do this because UE is causing some weirdness where the version checker is broken and always errors. + * This is really only for DPP-UE. There is no reason to not do the version checker unless you are in Unreal Engine. + */ +#if !defined(UE_BUILD_DEBUG) && !defined(UE_BUILD_DEVELOPMENT) && !defined(UE_BUILD_TEST) && !defined(UE_BUILD_SHIPPING) && !defined(UE_GAME) && !defined(UE_EDITOR) && !defined(UE_BUILD_SHIPPING_WITH_EDITOR) && !defined(UE_BUILD_DOCS) static version_checker dpp_vc; +#endif /**