Преглед на файлове

[GDNative] fixed a bug with ambiguous include paths

fixes #10071. The problem is that the json.h file includes the
local variant.h instead of the "absolute" core/variant.h
Karroffel преди 8 години
родител
ревизия
ab3b1e67c7
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      modules/gdnative/godot/dictionary.cpp

+ 2 - 1
modules/gdnative/godot/dictionary.cpp

@@ -29,9 +29,10 @@
 /*************************************************************************/
 #include <godot/dictionary.h>
 
+#include "core/variant.h"
+
 #include "core/dictionary.h"
 #include "core/io/json.h"
-#include "core/variant.h"
 
 #ifdef __cplusplus
 extern "C" {