diff options
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/interface/interface_icons.c | 11 | ||||
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_image.c | 3 | ||||
-rw-r--r-- | source/blender/editors/space_console/space_console.c | 2 | ||||
-rw-r--r-- | source/blender/editors/space_file/file_draw.c | 3 | ||||
-rw-r--r-- | source/blender/editors/space_file/file_ops.c | 3 | ||||
-rw-r--r-- | source/blender/editors/space_file/filelist.c | 2 | ||||
-rw-r--r-- | source/blender/editors/space_file/filesel.c | 22 | ||||
-rw-r--r-- | source/blender/editors/space_file/fsmenu.c | 22 | ||||
-rw-r--r-- | source/blender/editors/space_text/text_header.c | 6 |
9 files changed, 36 insertions, 38 deletions
diff --git a/source/blender/editors/interface/interface_icons.c b/source/blender/editors/interface/interface_icons.c index ba7c12d164b..e20b60cd77e 100644 --- a/source/blender/editors/interface/interface_icons.c +++ b/source/blender/editors/interface/interface_icons.c @@ -33,12 +33,13 @@ #include <string.h> #ifndef WIN32 -#include <unistd.h> +# include <unistd.h> #else -#include <io.h> -#include <direct.h> -#include "BLI_winstuff.h" -#endif +# include <io.h> +# include <direct.h> +# include "BLI_winstuff.h" +#endif + #include "MEM_guardedalloc.h" #include "GPU_extensions.h" diff --git a/source/blender/editors/sculpt_paint/paint_image.c b/source/blender/editors/sculpt_paint/paint_image.c index 18f3094fa31..9f7cc7a75b1 100644 --- a/source/blender/editors/sculpt_paint/paint_image.c +++ b/source/blender/editors/sculpt_paint/paint_image.c @@ -41,8 +41,9 @@ #include "MEM_guardedalloc.h" #ifdef WIN32 -#include "BLI_winstuff.h" +# include "BLI_winstuff.h" #endif + #include "BLI_math.h" #include "BLI_blenlib.h" #include "BLI_dynstr.h" diff --git a/source/blender/editors/space_console/space_console.c b/source/blender/editors/space_console/space_console.c index b71ca6c36c4..39757aa393a 100644 --- a/source/blender/editors/space_console/space_console.c +++ b/source/blender/editors/space_console/space_console.c @@ -28,7 +28,7 @@ #include <stdio.h> #ifdef WIN32 -#include "BLI_winstuff.h" +# include "BLI_winstuff.h" #endif #include "MEM_guardedalloc.h" diff --git a/source/blender/editors/space_file/file_draw.c b/source/blender/editors/space_file/file_draw.c index d312ccf8aa1..516f6532c4a 100644 --- a/source/blender/editors/space_file/file_draw.c +++ b/source/blender/editors/space_file/file_draw.c @@ -35,8 +35,9 @@ #include "BLI_blenlib.h" #include "BLI_utildefines.h" #include "BLI_dynstr.h" + #ifdef WIN32 -#include "BLI_winstuff.h" +# include "BLI_winstuff.h" #endif #include "BIF_gl.h" diff --git a/source/blender/editors/space_file/file_ops.c b/source/blender/editors/space_file/file_ops.c index 62b7aafb187..eb706dcca75 100644 --- a/source/blender/editors/space_file/file_ops.c +++ b/source/blender/editors/space_file/file_ops.c @@ -37,8 +37,9 @@ #include "BLI_blenlib.h" #include "BLI_utildefines.h" + #ifdef WIN32 -#include "BLI_winstuff.h" +# include "BLI_winstuff.h" #endif #include "ED_screen.h" diff --git a/source/blender/editors/space_file/filelist.c b/source/blender/editors/space_file/filelist.c index 71ead483d06..a48fc6b23f6 100644 --- a/source/blender/editors/space_file/filelist.c +++ b/source/blender/editors/space_file/filelist.c @@ -50,7 +50,7 @@ #include "BLI_utildefines.h" #ifdef WIN32 -#include "BLI_winstuff.h" +# include "BLI_winstuff.h" #endif #include "BKE_context.h" diff --git a/source/blender/editors/space_file/filesel.c b/source/blender/editors/space_file/filesel.c index 55093c7e5de..a7197cb31e6 100644 --- a/source/blender/editors/space_file/filesel.c +++ b/source/blender/editors/space_file/filesel.c @@ -36,22 +36,16 @@ #include <sys/stat.h> #include <sys/types.h> -#ifdef WIN32 -#include <io.h> -#include <direct.h> -#include "BLI_winstuff.h" -#else -#include <unistd.h> -#include <sys/times.h> -#endif - /* path/file handeling stuff */ -#ifndef WIN32 - #include <dirent.h> - #include <unistd.h> +#ifdef WIN32 +# include <io.h> +# include <direct.h> +# include "BLI_winstuff.h" #else - #include <io.h> - #include "BLI_winstuff.h" +# include <unistd.h> +# include <sys/times.h> +# include <dirent.h> +# include <unistd.h> #endif #include "DNA_space_types.h" diff --git a/source/blender/editors/space_file/fsmenu.c b/source/blender/editors/space_file/fsmenu.c index ddd4b31d145..48449ac8870 100644 --- a/source/blender/editors/space_file/fsmenu.c +++ b/source/blender/editors/space_file/fsmenu.c @@ -44,20 +44,20 @@ #include "BLI_dynstr.h" #ifdef WIN32 -#include <windows.h> /* need to include windows.h so _WIN32_IE is defined */ -#ifndef _WIN32_IE -#define _WIN32_IE 0x0400 /* minimal requirements for SHGetSpecialFolderPath on MINGW MSVC has this defined already */ -#endif -#include <shlobj.h> /* for SHGetSpecialFolderPath, has to be done before BLI_winstuff because 'near' is disabled through BLI_windstuff */ -#include "BLI_winstuff.h" +# include <windows.h> /* need to include windows.h so _WIN32_IE is defined */ +# ifndef _WIN32_IE +# define _WIN32_IE 0x0400 /* minimal requirements for SHGetSpecialFolderPath on MINGW MSVC has this defined already */ +# endif +# include <shlobj.h> /* for SHGetSpecialFolderPath, has to be done before BLI_winstuff + * because 'near' is disabled through BLI_windstuff */ +# include "BLI_winstuff.h" #endif #ifdef __APPLE__ -/* XXX BIG WARNING: carbon.h can not be included in blender code, it conflicts with struct ID */ -#define ID ID_ -#include <CoreServices/CoreServices.h> - -#endif + /* XXX BIG WARNING: carbon.h can not be included in blender code, it conflicts with struct ID */ +# define ID ID_ +# include <CoreServices/CoreServices.h> +#endif /* __APPLE__ */ #ifdef __linux__ #include <mntent.h> diff --git a/source/blender/editors/space_text/text_header.c b/source/blender/editors/space_text/text_header.c index a7b455a6ff3..b0cd6aeaab4 100644 --- a/source/blender/editors/space_text/text_header.c +++ b/source/blender/editors/space_text/text_header.c @@ -39,10 +39,10 @@ #include <sys/stat.h> #ifndef _WIN32 -#include <unistd.h> +# include <unistd.h> #else -#include <io.h> -#include "BLI_winstuff.h" +# include <io.h> +# include "BLI_winstuff.h" #endif #include "DNA_windowmanager_types.h" |