add GDN_EXPORT to C++ examples

This commit is contained in:
karroffel
2018-01-18 10:37:39 +01:00
parent a459224278
commit 8b3c2ee96b
2 changed files with 6 additions and 6 deletions

View File

@@ -2,17 +2,17 @@
#include "Simple.hpp"
extern "C" void godot_gdnative_init(godot_gdnative_init_options *o)
extern "C" void GDN_EXPORT godot_gdnative_init(godot_gdnative_init_options *o)
{
godot::Godot::gdnative_init(o);
}
extern "C" void godot_gdnative_terminate(godot_gdnative_terminate_options *o)
extern "C" void GDN_EXPORT godot_gdnative_terminate(godot_gdnative_terminate_options *o)
{
godot::Godot::gdnative_terminate(o);
}
extern "C" void godot_nativescript_init(void *handle)
extern "C" void GDN_EXPORT godot_nativescript_init(void *handle)
{
godot::Godot::nativescript_init(handle);

View File

@@ -21,15 +21,15 @@
using namespace godot;
extern "C" void godot_gdnative_init(godot_gdnative_init_options *options) {
extern "C" void GDN_EXPORT godot_gdnative_init(godot_gdnative_init_options *options) {
Godot::gdnative_init(options);
}
extern "C" void godot_gdnative_terminate(godot_gdnative_terminate_options *options) {
extern "C" void GDN_EXPORT godot_gdnative_terminate(godot_gdnative_terminate_options *options) {
Godot::gdnative_terminate(options);
}
extern "C" void godot_nativescript_init(void *handle) {
extern "C" void GDN_EXPORT godot_nativescript_init(void *handle) {
Godot::nativescript_init(handle);