[Bf-blender-cvs] [cdad684ada8] master: Fix (unreported) wrong definition of `ssize_t` for windows.
Bastien Montagne
noreply at git.blender.org
Sun Sep 20 19:35:55 CEST 2020
Commit: cdad684ada84b50d7dcb3f5869384a886a408590
Author: Bastien Montagne
Date: Sun Sep 20 19:32:46 2020 +0200
Branches: master
https://developer.blender.org/rBcdad684ada84b50d7dcb3f5869384a886a408590
Fix (unreported) wrong definition of `ssize_t` for windows.
Since at least MSVC2010 there is a `SSIZE_T` available for windows, use
it to typedef `ssize_t` on this platform.
===================================================================
M source/blender/blenlib/BLI_winstuff.h
===================================================================
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
More information about the Bf-blender-cvs
mailing list