diff options
4 files changed, 15 insertions, 39 deletions
diff --git a/source/blender/editors/space_outliner/outliner_edit.c b/source/blender/editors/space_outliner/outliner_edit.c index 981c4a5d867..4c1c6b15042 100644 --- a/source/blender/editors/space_outliner/outliner_edit.c +++ b/source/blender/editors/space_outliner/outliner_edit.c @@ -29,6 +29,8 @@ * \ingroup spoutliner */ +/* TODO - HEADER CLEANUP - many of these are copy-pasted */ + #include <math.h> #include <string.h> #include <stdlib.h> @@ -56,15 +58,6 @@ #include "BLI_utildefines.h" #include "BLI_math_base.h" -#if defined WIN32 && !defined _LIBC -# include "BLI_fnmatch.h" /* use fnmatch included in blenlib */ -#else -# ifndef _GNU_SOURCE -# define _GNU_SOURCE -# endif -# include <fnmatch.h> -#endif - #include "BLF_translation.h" #include "BKE_animsys.h" diff --git a/source/blender/editors/space_outliner/outliner_select.c b/source/blender/editors/space_outliner/outliner_select.c index c7aa4dc4e92..5594f22fc91 100644 --- a/source/blender/editors/space_outliner/outliner_select.c +++ b/source/blender/editors/space_outliner/outliner_select.c @@ -29,6 +29,8 @@ * \ingroup spoutliner */ +/* TODO - HEADER CLEANUP - many of these are copy-pasted */ + #include <math.h> #include <string.h> #include <stdlib.h> @@ -56,16 +58,6 @@ #include "BLI_utildefines.h" #include "BLI_math_base.h" -#if defined WIN32 && !defined _LIBC -# include "BLI_fnmatch.h" /* use fnmatch included in blenlib */ -#else -# ifndef _GNU_SOURCE -# define _GNU_SOURCE -# endif -# include <fnmatch.h> -#endif - - #include "BKE_animsys.h" #include "BKE_context.h" #include "BKE_deform.h" diff --git a/source/blender/editors/space_outliner/outliner_tools.c b/source/blender/editors/space_outliner/outliner_tools.c index ba3637a88af..3a8f8c54d05 100644 --- a/source/blender/editors/space_outliner/outliner_tools.c +++ b/source/blender/editors/space_outliner/outliner_tools.c @@ -29,6 +29,8 @@ * \ingroup spoutliner */ +/* TODO - HEADER CLEANUP - many of these are copy-pasted */ + #include <math.h> #include <string.h> #include <stdlib.h> @@ -56,16 +58,6 @@ #include "BLI_utildefines.h" #include "BLI_math_base.h" -#if defined WIN32 && !defined _LIBC -# include "BLI_fnmatch.h" /* use fnmatch included in blenlib */ -#else -# ifndef _GNU_SOURCE -# define _GNU_SOURCE -# endif -# include <fnmatch.h> -#endif - - #include "BKE_animsys.h" #include "BKE_context.h" #include "BKE_deform.h" diff --git a/source/blender/editors/space_outliner/outliner_tree.c b/source/blender/editors/space_outliner/outliner_tree.c index e83fce0cf05..83c2bdaf347 100644 --- a/source/blender/editors/space_outliner/outliner_tree.c +++ b/source/blender/editors/space_outliner/outliner_tree.c @@ -34,6 +34,15 @@ #include <stdlib.h> #include <stddef.h> +#if defined WIN32 && !defined _LIBC || defined __sun +# include "BLI_fnmatch.h" /* use fnmatch included in blenlib */ +#else +# ifndef _GNU_SOURCE +# define _GNU_SOURCE +# endif +# include <fnmatch.h> +#endif + #include "MEM_guardedalloc.h" #include "DNA_anim_types.h" @@ -57,16 +66,6 @@ #include "BLI_utildefines.h" #include "BLI_math_base.h" -#if defined WIN32 && !defined _LIBC || defined __sun -# include "BLI_fnmatch.h" /* use fnmatch included in blenlib */ -#else -# ifndef _GNU_SOURCE -# define _GNU_SOURCE -# endif -# include <fnmatch.h> -#endif - - #include "BKE_animsys.h" #include "BKE_context.h" #include "BKE_deform.h" |