Patch to build C# Sqlite with Mono.

19 views
Skip to first unread message

Miguel de Icaza

unread,
Aug 9, 2009, 12:08:54 PM8/9/09
to csharp...@googlegroups.com
Hello,

    This patch makes C# Sqlite build with Mono.

    Mono's compiler is a bit stricter with the processing of regions that are ignored at the preprocessor level.   Microsoft's C# compiler ignores any errors in preprocessor use inside regions like:

#if false

#invalid-preprocessor-directive

#endif


    Mono's C# compiler requires that the preprocessor directives are valid, in this particular context, this means that it is not legal to #define new values insde and #if block if a token has been parsed by the compiler, so all the #if foo #define #endif blocks have been moved to the top of the file.   

    Additionally, this fixes the shell compilation errors (missing refs).

Miguel.
work-on-mono.diff

Noah

unread,
Aug 10, 2009, 8:46:19 AM8/10/09
to C#-SQLite
I've incorporated your changes with the new baseline and LF changes.
I'll post later tie morning.
Please download new sources later today and test inder Mono
>  work-on-mono.diff
> 9KViewDownload
Reply all
Reply to author
Forward
0 new messages