Fix OBJECT_GUARDED_FREE compiler error when type is in namespace
This commit is contained in:
@@ -2,10 +2,10 @@
|
||||
|
||||
#include "testing/testing.h"
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
extern "C" {
|
||||
#include "BLI_array_store.h"
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
#include "BLI_sys_types.h"
|
||||
#include "BLI_utildefines.h"
|
||||
#include "BLI_listbase.h"
|
||||
|
@@ -2,8 +2,9 @@
|
||||
|
||||
#include "testing/testing.h"
|
||||
|
||||
extern "C" {
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
extern "C" {
|
||||
#include "BLI_math.h"
|
||||
#include "BLI_rand.h"
|
||||
#include "PIL_time.h"
|
||||
|
@@ -5,8 +5,9 @@
|
||||
|
||||
#define GHASH_INTERNAL_API
|
||||
|
||||
extern "C" {
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
extern "C" {
|
||||
#include "BLI_utildefines.h"
|
||||
#include "BLI_ghash.h"
|
||||
#include "BLI_rand.h"
|
||||
|
@@ -3,14 +3,14 @@
|
||||
#include "testing/testing.h"
|
||||
#include <string.h>
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
extern "C" {
|
||||
#include "BLI_sys_types.h"
|
||||
#include "BLI_compiler_attrs.h"
|
||||
#include "BLI_heap_simple.h"
|
||||
#include "BLI_utildefines.h"
|
||||
#include "BLI_rand.h"
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
};
|
||||
|
||||
#define SIZE 1024
|
||||
|
@@ -3,13 +3,13 @@
|
||||
#include "testing/testing.h"
|
||||
#include <string.h>
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
extern "C" {
|
||||
#include "BLI_compiler_attrs.h"
|
||||
#include "BLI_heap.h"
|
||||
#include "BLI_utildefines.h"
|
||||
#include "BLI_rand.h"
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
};
|
||||
|
||||
#define SIZE 1024
|
||||
|
@@ -4,12 +4,13 @@
|
||||
|
||||
/* TODO: ray intersection, overlap ... etc.*/
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
extern "C" {
|
||||
#include "BLI_compiler_attrs.h"
|
||||
#include "BLI_kdopbvh.h"
|
||||
#include "BLI_rand.h"
|
||||
#include "BLI_math_vector.h"
|
||||
#include "MEM_guardedalloc.h"
|
||||
}
|
||||
|
||||
#include "stubs/bf_intern_eigen_stubs.h"
|
||||
|
@@ -2,11 +2,11 @@
|
||||
|
||||
#include "testing/testing.h"
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
extern "C" {
|
||||
#include "BLI_array_utils.h"
|
||||
#include "BLI_listbase.h"
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
#include "BLI_string.h"
|
||||
#include "BLI_path_util.h"
|
||||
#include "BLI_ressource_strings.h"
|
||||
|
@@ -2,10 +2,11 @@
|
||||
|
||||
#include "testing/testing.h"
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
extern "C" {
|
||||
#include "BLI_array_utils.h"
|
||||
#include "BLI_memiter.h"
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
#include "BLI_string.h"
|
||||
#include "BLI_ressource_strings.h"
|
||||
|
@@ -9,13 +9,14 @@
|
||||
#define USE_COMBINATIONS_ALL
|
||||
#define USE_BEAUTIFY
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
extern "C" {
|
||||
#include "BLI_utildefines.h"
|
||||
#include "BLI_array_utils.h"
|
||||
#include "BLI_polyfill_2d.h"
|
||||
#include "BLI_edgehash.h"
|
||||
#include "BLI_math.h"
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
#ifdef USE_OBJ_PREVIEW
|
||||
# include "BLI_string.h"
|
||||
|
@@ -7,6 +7,8 @@
|
||||
|
||||
#define GHASH_INTERNAL_API
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
extern "C" {
|
||||
#include "BLI_utildefines.h"
|
||||
|
||||
@@ -15,8 +17,6 @@ extern "C" {
|
||||
#include "BLI_task.h"
|
||||
|
||||
#include "PIL_time.h"
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
}
|
||||
|
||||
#define NUM_RUN_AVERAGED 100
|
||||
|
@@ -5,14 +5,14 @@
|
||||
|
||||
#include "atomic_ops.h"
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
extern "C" {
|
||||
#include "BLI_utildefines.h"
|
||||
|
||||
#include "BLI_listbase.h"
|
||||
#include "BLI_mempool.h"
|
||||
#include "BLI_task.h"
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
};
|
||||
|
||||
#define NUM_ITEMS 10000
|
||||
|
@@ -17,6 +17,8 @@
|
||||
*/
|
||||
#include "blendfile_loading_base_test.h"
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
extern "C" {
|
||||
#include "BKE_appdir.h"
|
||||
#include "BKE_blender.h"
|
||||
@@ -41,8 +43,6 @@ extern "C" {
|
||||
|
||||
#include "IMB_imbuf.h"
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
#include "RNA_define.h"
|
||||
|
||||
#include "WM_api.h"
|
||||
|
Reference in New Issue
Block a user