[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [55046] trunk/blender/source/blender/ blenlib: fix for building with msvc
Campbell Barton
ideasman42 at gmail.com
Tue Mar 5 08:39:52 CET 2013
Revision: 55046
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=55046
Author: campbellbarton
Date: 2013-03-05 07:39:52 +0000 (Tue, 05 Mar 2013)
Log Message:
-----------
fix for building with msvc
Modified Paths:
--------------
trunk/blender/source/blender/blenlib/BLI_winstuff.h
trunk/blender/source/blender/blenlib/intern/storage.c
Modified: trunk/blender/source/blender/blenlib/BLI_winstuff.h
===================================================================
--- trunk/blender/source/blender/blenlib/BLI_winstuff.h 2013-03-05 07:36:30 UTC (rev 55045)
+++ trunk/blender/source/blender/blenlib/BLI_winstuff.h 2013-03-05 07:39:52 UTC (rev 55046)
@@ -94,6 +94,14 @@
/* defines for using ISO C++ conformant names */
#define snprintf _snprintf
+#ifdef _MSC_VER
+# define R_OK 4
+# define W_OK 2
+# define X_OK 1
+# define F_OK 0
+# define PATH_MAX 4096
+#endif
+
#ifndef FREE_WINDOWS
typedef unsigned int mode_t;
#endif
Modified: trunk/blender/source/blender/blenlib/intern/storage.c
===================================================================
--- trunk/blender/source/blender/blenlib/intern/storage.c 2013-03-05 07:36:30 UTC (rev 55045)
+++ trunk/blender/source/blender/blenlib/intern/storage.c 2013-03-05 07:39:52 UTC (rev 55046)
@@ -265,7 +265,7 @@
{
wchar_t *name_16 = alloc_utf16_from_8(fullname, 0);
#if defined(_MSC_VER) && (_MSC_VER >= 1500)
- _wstat64(name_16, &filec->s);
+ _wstat64(name_16, &file->s);
#elif defined(__MINGW32__)
_stati64(fullname, &file->s);
#endif
More information about the Bf-blender-cvs
mailing list