From bcb7b119ae5240632b7f8b07f926c230f3c48daf Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 26 Sep 2022 12:26:48 +1000 Subject: Cleanup: remove workarounds and version checks for unsupported compilers Match minimum supported versions from the WIKI [0] by raising them to: - GCC 9.3.1 - CLANG 8.0 - MVCS 2019 (16.9.16 / 1928) Details: - Add CMake checks that ensure supported compiler versions early on. - Previously GCC per-processor version checks served to exclude `__clang__`, in some cases this has been replaced by explicitly excluding `__clang__`. This was needed as CLANG treated some of these flags differently to GCC, causing the build to fail. - Remove USE_APPLE_OMP_FIX GCC-4.2 OpenMP workaround. - Remove linking error workaround for old MSVC versions. [0]: https://wiki.blender.org/wiki/Building_Blender Reviewed by: brecht, LazyDodo Ref D16068 --- source/blender/blenlib/BLI_winstuff.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'source/blender/blenlib/BLI_winstuff.h') diff --git a/source/blender/blenlib/BLI_winstuff.h b/source/blender/blenlib/BLI_winstuff.h index 7201e1bb4a1..34f1b1a68f1 100644 --- a/source/blender/blenlib/BLI_winstuff.h +++ b/source/blender/blenlib/BLI_winstuff.h @@ -48,11 +48,6 @@ extern "C" { # define S_ISDIR(x) (((x)&_S_IFDIR) == _S_IFDIR) #endif -/* Defines for using ISO C++ conferment names. */ -#if !defined(_MSC_VER) || _MSC_VER < 1900 -# define snprintf _snprintf -#endif - #if defined(_MSC_VER) # define R_OK 4 # define W_OK 2 -- cgit v1.2.3