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:
authorNathan Letwory <nathan@letworyinteractive.com>2007-01-24 08:04:48 +0300
committerNathan Letwory <nathan@letworyinteractive.com>2007-01-24 08:04:48 +0300
commit1d2a1da7633505abba2a928987694b1302268463 (patch)
treef826718402363d72241464d1a45f21752a244323 /source/blender/src/interface_icons.c
parent35bb9dff1ddd7ff2a70882198b5009646faf539a (diff)
* add proper header for chdir().
Diffstat (limited to 'source/blender/src/interface_icons.c')
-rw-r--r--source/blender/src/interface_icons.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/interface_icons.c b/source/blender/src/interface_icons.c
index 872ec061d69..fb61b83a8f0 100644
--- a/source/blender/src/interface_icons.c
+++ b/source/blender/src/interface_icons.c
@@ -41,6 +41,7 @@
#include <unistd.h>
#else
#include <io.h>
+#include <direct.h>
#endif
#include "MEM_guardedalloc.h"
@@ -605,7 +606,7 @@ static void init_iconfile_list(struct ListBase *list)
if(!BLI_getwdN(olddir))
restoredir = 0;
totfile = BLI_getdir(icondirstr, &dir);
- if (restoredir)
+ if (restoredir)
chdir(olddir);
for(i=0; i<totfile; i++) {
@@ -1012,4 +1013,3 @@ void BIF_icon_draw_aspect_blended(float x, float y, int icon_id, float aspect, i
if(shade < 0)
glPixelTransferf(GL_ALPHA_SCALE, 1.0f);
}
-