diff options
author | Evrey <Evrey@users.noreply.github.com> | 2017-11-13 23:35:03 +0100 |
---|---|---|
committer | Thomas Herzog <thomas.herzog@mail.com> | 2017-11-13 23:35:03 +0100 |
commit | af6f096427c27303a8c791ea0737a34f879711ea (patch) | |
tree | d57ed8b4f164c976d97879ef2b53c743e8ef1a29 | |
parent | c4f9820c2ff00653ab1fdfda977fbc01e75f1138 (diff) |
fix auto-generated GDN API header for C compilers (#12891)
* fix auto-generated GDN API header for C compilers
-rw-r--r-- | modules/gdnative/SCsub | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/gdnative/SCsub b/modules/gdnative/SCsub index 88588417d1..2755930a55 100644 --- a/modules/gdnative/SCsub +++ b/modules/gdnative/SCsub @@ -40,11 +40,13 @@ def _build_gdnative_api_struct_header(api): '\tunsigned int minor;', '} godot_gdnative_api_version;', '', - 'typedef struct godot_gdnative_api_struct {', + 'typedef struct godot_gdnative_api_struct godot_gdnative_api_struct;', + '', + 'struct godot_gdnative_api_struct {', '\tunsigned int type;', '\tgodot_gdnative_api_version version;', '\tconst godot_gdnative_api_struct *next;', - '} godot_gdnative_api_struct;', + '};', '', 'enum GDNATIVE_API_TYPES {', '\tGDNATIVE_' + api['core']['type'] + ',' |