diff options
author | Bastien Montagne <bastien@blender.org> | 2020-09-20 20:32:46 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-09-20 20:32:46 +0300 |
commit | cdad684ada84b50d7dcb3f5869384a886a408590 (patch) | |
tree | 968e1128ee4eb8f361b5402c7ab0ad119723355f /source/blender/blenlib/BLI_winstuff.h | |
parent | 5ea1049e7520c0f369d2a76811410b1274699e81 (diff) |
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.
Diffstat (limited to 'source/blender/blenlib/BLI_winstuff.h')
-rw-r--r-- | source/blender/blenlib/BLI_winstuff.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |