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
path: root/source
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2016-08-16 15:57:56 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2016-08-16 16:06:16 +0300
commitae475e355488db27c4b9fcc33385080578403833 (patch)
tree444ce7b6478842d508f7655ce7c764cacfedafd3 /source
parent9368bdab016badba7c7eb4ba449acd8d0c165367 (diff)
Fix release build after recent fix for debug one
It's becoming annoying to have public API dependent on build type and everything. Let's just always have API defined and do stubs in the function implementation instead.
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenlib/BLI_system.h3
-rw-r--r--source/blender/blenlib/BLI_utildefines.h2
-rw-r--r--source/blender/makesrna/intern/makesrna.c2
3 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/blenlib/BLI_system.h b/source/blender/blenlib/BLI_system.h
index 938a12dcdcf..f51b9623803 100644
--- a/source/blender/blenlib/BLI_system.h
+++ b/source/blender/blenlib/BLI_system.h
@@ -21,11 +21,14 @@
#ifndef __BLI_SYSTEM_H__
#define __BLI_SYSTEM_H__
+#include <stdio.h>
+
/** \file BLI_system.h
* \ingroup bli
*/
int BLI_cpu_support_sse2(void);
+void BLI_system_backtrace(FILE *fp);
/* getpid */
#ifdef WIN32
diff --git a/source/blender/blenlib/BLI_utildefines.h b/source/blender/blenlib/BLI_utildefines.h
index d504e503c68..746eb922c65 100644
--- a/source/blender/blenlib/BLI_utildefines.h
+++ b/source/blender/blenlib/BLI_utildefines.h
@@ -633,7 +633,7 @@ extern bool BLI_memory_is_zero(const void *arr, const size_t arr_size);
* for aborting need to define WITH_ASSERT_ABORT
*/
#ifndef NDEBUG
-extern void BLI_system_backtrace(FILE *fp);
+# include "BLI_system.h"
# ifdef WITH_ASSERT_ABORT
# define _BLI_DUMMY_ABORT abort
# else
diff --git a/source/blender/makesrna/intern/makesrna.c b/source/blender/makesrna/intern/makesrna.c
index 1f8ef0dbab5..569c1ee5f3f 100644
--- a/source/blender/makesrna/intern/makesrna.c
+++ b/source/blender/makesrna/intern/makesrna.c
@@ -50,7 +50,7 @@
#ifndef NDEBUG
void BLI_system_backtrace(FILE *fp)
{
- (void)fp;
+ (void)fp;
}
#endif