diff options
author | Teravus Ovares (Dan Olivares) | 2010-09-23 01:21:08 -0400 |
---|---|---|
committer | Teravus Ovares (Dan Olivares) | 2010-09-23 01:21:08 -0400 |
commit | 983c6a74b15f566a9d2290b545f2b56b74f05f58 (patch) | |
tree | 1cc5495bbacc8bf844c20176746fa0ae05061814 /OpenSim/Data/SQLite/SQLiteSimulationData.cs | |
parent | * Pushing the Community.CSharpSqlite.Sqlite dll's I built. This is a slight... (diff) | |
download | opensim-SC_OLD-983c6a74b15f566a9d2290b545f2b56b74f05f58.zip opensim-SC_OLD-983c6a74b15f566a9d2290b545f2b56b74f05f58.tar.gz opensim-SC_OLD-983c6a74b15f566a9d2290b545f2b56b74f05f58.tar.bz2 opensim-SC_OLD-983c6a74b15f566a9d2290b545f2b56b74f05f58.tar.xz |
* Add CSharpSqlite to prebuild
* Use a conditional define to determine whether we're using CSharpSqlite or Mono.Data.Sqlite
#if CSharpSqlite
using Community.CsharpSqlite.Sqlite;
#else
using Mono.Data.Sqlite;
#endif
* Hopefully, this will restore sqlite functionality on a Mac. In visual studio, you can edit the OpenSim.Data.SQLite project, go to the Build tab and enter CSharpSqlite in the box. I'm not sure how to define CSharpSqlite in Mono, someone better at it then me will have to take the job of figuring out the best way to define it in Mono.
Diffstat (limited to 'OpenSim/Data/SQLite/SQLiteSimulationData.cs')
-rw-r--r-- | OpenSim/Data/SQLite/SQLiteSimulationData.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Data/SQLite/SQLiteSimulationData.cs b/OpenSim/Data/SQLite/SQLiteSimulationData.cs index ebe6da8..9d49fb6 100644 --- a/OpenSim/Data/SQLite/SQLiteSimulationData.cs +++ b/OpenSim/Data/SQLite/SQLiteSimulationData.cs | |||
@@ -32,7 +32,11 @@ using System.Drawing; | |||
32 | using System.IO; | 32 | using System.IO; |
33 | using System.Reflection; | 33 | using System.Reflection; |
34 | using log4net; | 34 | using log4net; |
35 | using Mono.Data.Sqlite; | 35 | #if CSharpSqlite |
36 | using Community.CsharpSqlite.Sqlite; | ||
37 | #else | ||
38 | using Mono.Data.Sqlite; | ||
39 | #endif | ||
36 | using OpenMetaverse; | 40 | using OpenMetaverse; |
37 | using OpenMetaverse.StructuredData; | 41 | using OpenMetaverse.StructuredData; |
38 | using OpenSim.Framework; | 42 | using OpenSim.Framework; |