Fix OBJECT_GUARDED_FREE compiler error when type is in namespace

This commit is contained in:
Brecht Van Lommel
2020-01-26 16:38:18 +01:00
parent 9cacadc8a6
commit 1107af1abb
40 changed files with 75 additions and 60 deletions

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View File

@@ -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

View File

@@ -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

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View File

@@ -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

View File

@@ -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

View File

@@ -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"