From ec679dfffa15ac531e46df8b72aa414ef9c90cab Mon Sep 17 00:00:00 2001 From: Ignacio Etcheverry Date: Sat, 20 Jul 2019 14:26:46 +0200 Subject: Fix mono module build errors for release templates --- modules/mono/class_db_api_json.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'modules/mono/class_db_api_json.h') diff --git a/modules/mono/class_db_api_json.h b/modules/mono/class_db_api_json.h index 0aa9c20930..ddfe2debea 100644 --- a/modules/mono/class_db_api_json.h +++ b/modules/mono/class_db_api_json.h @@ -31,9 +31,16 @@ #ifndef CLASS_DB_API_JSON_H #define CLASS_DB_API_JSON_H +// 'core/method_bind.h' defines DEBUG_METHODS_ENABLED, but it looks like we +// cannot include it here. That's why we include it through 'core/class_db.h'. #include "core/class_db.h" + +#ifdef DEBUG_METHODS_ENABLED + #include "core/ustring.h" void class_db_api_to_json(const String &p_output_file, ClassDB::APIType p_api); +#endif // DEBUG_METHODS_ENABLED + #endif // CLASS_DB_API_JSON_H -- cgit v1.2.3