Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-04-15 11:54:07 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-04-15 11:54:07 +0400
commita73d0d3e72940ecd0e3e60c8e4e858c7e00ff5e2 (patch)
tree554c462fa090dad417a0e0371a7647007c33b1ba /source/blender/blenlib/intern
parenta8077c8222876bdc67cfbc9ae56b04a12c8657e9 (diff)
code cleanup: dont include BLI_winstuff.h on non windows systems, also cleanup some defines/includes for windows.
Diffstat (limited to 'source/blender/blenlib/intern')
-rw-r--r--source/blender/blenlib/intern/fileops.c18
-rw-r--r--source/blender/blenlib/intern/storage.c19
2 files changed, 17 insertions, 20 deletions
diff --git a/source/blender/blenlib/intern/fileops.c b/source/blender/blenlib/intern/fileops.c
index 1b734c674e2..93312f04692 100644
--- a/source/blender/blenlib/intern/fileops.c
+++ b/source/blender/blenlib/intern/fileops.c
@@ -43,16 +43,16 @@
#ifdef WIN32
#include <io.h>
-#include "BLI_winstuff.h"
-#include "BLI_callbacks.h"
-#include "utf_winfunc.h"
-#include "utfconv.h"
+# include "BLI_winstuff.h"
+# include "BLI_callbacks.h"
+# include "utf_winfunc.h"
+# include "utfconv.h"
#else
-#include <unistd.h> // for read close
-#include <sys/param.h>
-#include <dirent.h>
-#include <unistd.h>
-#include <sys/stat.h>
+# include <unistd.h> // for read close
+# include <sys/param.h>
+# include <dirent.h>
+# include <unistd.h>
+# include <sys/stat.h>
#endif
#include "MEM_guardedalloc.h"
diff --git a/source/blender/blenlib/intern/storage.c b/source/blender/blenlib/intern/storage.c
index b0c0f106f06..9bcbdcce12e 100644
--- a/source/blender/blenlib/intern/storage.c
+++ b/source/blender/blenlib/intern/storage.c
@@ -68,20 +68,17 @@
#include <fcntl.h>
#include <string.h> /* strcpy etc.. */
-#ifndef WIN32
-#include <sys/ioctl.h>
-#include <unistd.h> /* */
-#include <pwd.h>
-#endif
-
#ifdef WIN32
-#include <io.h>
-#include <direct.h>
-#include "BLI_winstuff.h"
-#include "utfconv.h"
+# include <io.h>
+# include <direct.h>
+# include "BLI_winstuff.h"
+# include "utfconv.h"
+#else
+# include <sys/ioctl.h>
+# include <unistd.h>
+# include <pwd.h>
#endif
-
/* lib includes */
#include "MEM_guardedalloc.h"