From cc9372b7e0f848405e37d51587916c4ec7f636a3 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 10 Dec 2013 12:59:04 +1100 Subject: DNA Deprecation: add DNA_DEPRECATED_GCC_POISON for enum/structs. also fully remove freestyle raycasting_algorithm --- source/blender/makesdna/DNA_defs.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'source/blender/makesdna/DNA_defs.h') diff --git a/source/blender/makesdna/DNA_defs.h b/source/blender/makesdna/DNA_defs.h index 842543da174..fc9dd8f06a9 100644 --- a/source/blender/makesdna/DNA_defs.h +++ b/source/blender/makesdna/DNA_defs.h @@ -44,6 +44,20 @@ # endif #endif + +/* poison pragma */ +#ifdef DNA_DEPRECATED_ALLOW +# define DNA_DEPRECATED_GCC_POISON 0 +#else + /* enable the pragma if we can */ +# ifdef __GNUC__ +# define DNA_DEPRECATED_GCC_POISON 1 +# else +# define DNA_DEPRECATED_GCC_POISON 0 +# endif +#endif + + /* hrmf, we need a better include then this */ #include "../blenlib/BLI_sys_types.h" /* needed for int64_t only! */ -- cgit v1.2.3