eda/drivers/sqlite: Work around for Clang compilation
authorJerome St-Louis <jerome@ecere.com>
Wed, 2 Apr 2014 04:20:31 +0000 (00:20 -0400)
committerJerome St-Louis <jerome@ecere.com>
Wed, 2 Apr 2014 04:20:31 +0000 (00:20 -0400)
ecere/src/gui/Desktop3D.ec
eda/drivers/sqlite/EDASQLite.ec

index 25d7199..714b964 100644 (file)
@@ -306,7 +306,7 @@ public void Desktop3DInitialize(Window window,
 
 public void * Desktop3DGetWindowHandle(Window window)
 {
-   return window.windowHandle;
+   return window ? window.windowHandle : null;
 }
 
 public void Desktop3DGetClipBox(Box box)
index c4a4392..4bc49d9 100644 (file)
@@ -483,6 +483,7 @@ class SQLiteDatabase : Database
 
 static class FFITypesHolder : Map<Class, String> { ~FFITypesHolder() { Free(); } }
 FFITypesHolder structFFITypes { };
+static Iterator dummy; // TOFIX: forward struct declaration issues on Clang
 
 public ffi_type * FFIGetType(Class type, bool structByValue)
 {