[Bf-blender-cvs] [c01174354f9] experimental-build: Attempt to fix missing ssize_t type on Windows.
Bastien Montagne
noreply at git.blender.org
Sun Sep 20 19:02:52 CEST 2020
Commit: c01174354f900f625159aedc9ae27f4089699544
Author: Bastien Montagne
Date: Sun Sep 20 19:02:26 2020 +0200
Branches: experimental-build
https://developer.blender.org/rBc01174354f900f625159aedc9ae27f4089699544
Attempt to fix missing ssize_t type on Windows.
===================================================================
M source/blender/blenlib/BLI_sys_types.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 ff1f6af9573..398d168b3e2 100644
--- a/source/blender/blenlib/BLI_sys_types.h
+++ b/source/blender/blenlib/BLI_sys_types.h
@@ -60,6 +60,9 @@ typedef uint64_t u_int64_t;
#elif defined(_MSC_VER)
# include <stdint.h>
+# include <BaseTsd.h>
+typedef SSIZE_T ssize_t;
+
#else
/* FreeBSD, Solaris */
diff --git a/source/blender/blenloader/intern/readfile.h b/source/blender/blenloader/intern/readfile.h
index c479e3e589b..a651107ea10 100644
--- a/source/blender/blenloader/intern/readfile.h
+++ b/source/blender/blenloader/intern/readfile.h
@@ -24,6 +24,8 @@
#pragma once
+#include "BLI_sys_types.h"
+
#include "DNA_sdna_types.h"
#include "DNA_space_types.h"
#include "DNA_windowmanager_types.h" /* for ReportType */
More information about the Bf-blender-cvs
mailing list