[Bf-blender-cvs] [9be28095cba] master: Fix building on NetBSD

Campbell Barton noreply at git.blender.org
Sat May 9 15:26:17 CEST 2020


Commit: 9be28095cba4fdff77626f54d61afb0acdd2f9dd
Author: Campbell Barton
Date:   Sat May 9 23:22:50 2020 +1000
Branches: master
https://developer.blender.org/rB9be28095cba4fdff77626f54d61afb0acdd2f9dd

Fix building on NetBSD

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

M	extern/wcwidth/wcwidth.h
M	source/blender/blenlib/BLI_sys_types.h

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

diff --git a/extern/wcwidth/wcwidth.h b/extern/wcwidth/wcwidth.h
index d87eaf20695..3039a50bddd 100644
--- a/extern/wcwidth/wcwidth.h
+++ b/extern/wcwidth/wcwidth.h
@@ -21,7 +21,7 @@
 #define __WCWIDTH_H__
 
 #ifndef __cplusplus
-#  if defined(__APPLE__)
+#  if defined(__APPLE__) || defined(__NetBSD__)
 /* The <uchar.h> standard header is missing on macOS. */
 #include <stddef.h>
 typedef unsigned int char32_t;
diff --git a/source/blender/blenlib/BLI_sys_types.h b/source/blender/blenlib/BLI_sys_types.h
index b9e799aa2a9..ef15ce111b6 100644
--- a/source/blender/blenlib/BLI_sys_types.h
+++ b/source/blender/blenlib/BLI_sys_types.h
@@ -73,7 +73,7 @@ typedef uint64_t u_int64_t;
 #include <stddef.h> /* size_t define */
 
 #ifndef __cplusplus
-#  if defined(__APPLE__)
+#  if defined(__APPLE__) || defined(__NetBSD__)
 /* The <uchar.h> standard header is missing on macOS. */
 typedef unsigned int char32_t;
 #  else



More information about the Bf-blender-cvs mailing list