[Bf-blender-cvs] [5dc643fa981] experimental-build: Second attempt to fix windows missing ssize_t type.

Bastien Montagne noreply at git.blender.org
Sun Sep 20 19:09:06 CEST 2020


Commit: 5dc643fa98189ada7a394449e220d4f70177d41e
Author: Bastien Montagne
Date:   Sun Sep 20 19:08:40 2020 +0200
Branches: experimental-build
https://developer.blender.org/rB5dc643fa98189ada7a394449e220d4f70177d41e

Second attempt to fix windows missing ssize_t type.

===================================================================

M	source/blender/blenlib/BLI_sys_types.h
M	source/blender/blenlib/BLI_winstuff.h
M	source/blender/blenloader/intern/readfile.h

===================================================================

diff --git a/source/blender/blenlib/BLI_sys_types.h b/source/blender/blenlib/BLI_sys_types.h
index 398d168b3e2..ff57258f701 100644
--- a/source/blender/blenlib/BLI_sys_types.h
+++ b/source/blender/blenlib/BLI_sys_types.h
@@ -59,10 +59,6 @@ typedef uint64_t u_int64_t;
 /* MSVC >= 2010 */
 #elif defined(_MSC_VER)
 #  include <stdint.h>
-
-#  include <BaseTsd.h>
-typedef SSIZE_T ssize_t;
-
 #else
 
 /* FreeBSD, Solaris */
diff --git a/source/blender/blenlib/BLI_winstuff.h b/source/blender/blenlib/BLI_winstuff.h
index 8076724a214..dc4d6d8fce4 100644
--- a/source/blender/blenlib/BLI_winstuff.h
+++ b/source/blender/blenlib/BLI_winstuff.h
@@ -84,7 +84,7 @@ typedef unsigned int mode_t;
 /* python uses HAVE_SSIZE_T */
 #  ifndef HAVE_SSIZE_T
 #    define HAVE_SSIZE_T 1
-typedef long ssize_t;
+typedef SSIZE_T ssize_t;
 #  endif
 #endif
 
diff --git a/source/blender/blenloader/intern/readfile.h b/source/blender/blenloader/intern/readfile.h
index a651107ea10..c88cab7ded8 100644
--- a/source/blender/blenloader/intern/readfile.h
+++ b/source/blender/blenloader/intern/readfile.h
@@ -24,7 +24,7 @@
 
 #pragma once
 
-#include "BLI_sys_types.h"
+#include "BLI_winstuff.h"
 
 #include "DNA_sdna_types.h"
 #include "DNA_space_types.h"



More information about the Bf-blender-cvs mailing list