Merge pull request #9821 from karroffel/nativescript-doublefree

[GDNative] basic OS detection
This commit is contained in:
Thomas Herzog 2017-07-24 22:48:04 +02:00 committed by GitHub
commit 4b3fd59951

View file

@ -65,8 +65,17 @@ String GDNativeLibrary::platform_lib_ext[NUM_PLATFORMS] = {
"wasm"
};
// TODO(karroffel): make this actually do something lol.
GDNativeLibrary::Platform GDNativeLibrary::current_platform = X11_64BIT;
// TODO(karroffel): make this actually do the right thing.
GDNativeLibrary::Platform GDNativeLibrary::current_platform =
#if defined(X11_ENABLED)
X11_64BIT;
#elif defined(WINDOWS_ENABLED)
WINDOWS_64BIT;
#elif defined(OSX_ENABLED)
OSX;
#else
X11_64BIT; // need a sensible default..
#endif
GDNativeLibrary::GDNativeLibrary()
: library_paths() {