Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-08-06 13:17:44 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-08-06 15:49:28 +0300
commitba20da7214e0a71e843b0a6a8b11e0173599a0f0 (patch)
tree5fb2cc754fb0c2e2797aa42c1fa9a1ebffe5cb5d /source/blender/blenlib/BLI_alloca.h
parent73a43c9d8acfdb81aa324012bb30cae10c52f186 (diff)
Cleanup: avoid debug-only includes for BLI_assert.h
Having includes in debug builds makes it possible to accidentally break release builds. Avoid this by moving calls to other modules out of BLI_assert.h into BLI_assert.c
Diffstat (limited to 'source/blender/blenlib/BLI_alloca.h')
-rw-r--r--source/blender/blenlib/BLI_alloca.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_alloca.h b/source/blender/blenlib/BLI_alloca.h
index 5297296b7ef..258e788ac12 100644
--- a/source/blender/blenlib/BLI_alloca.h
+++ b/source/blender/blenlib/BLI_alloca.h
@@ -25,6 +25,8 @@
/* BLI_array_alloca / alloca */
+#include <stdlib.h>
+
#if defined(__GNUC__) || defined(__clang__)
# if defined(__cplusplus) && (__cplusplus > 199711L)
# define BLI_array_alloca(arr, realsize) (decltype(arr)) alloca(sizeof(*arr) * (realsize))