Miguel de Icaza
unread,Aug 9, 2009, 12:08:54 PM8/9/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.