[Mono-devel-list] Predefined symbols?

Michi Henning michi at zeroc.com
Thu May 6 08:19:59 EDT 2004

> On Wed, 2004-05-05 at 04:11, Michi Henning wrote:
> > simple question: does the C# preprocessor define a Mono-specific
> > symbol? I'm writing code that has to compile on both Visual C#
> > and mcs and want to use conditional compilation.
> Mcs defines the __MonoCS__ symbol.  Note that this only tells you the
> compiler that's being used, not the runtime environment.

Thanks muchly Jon, that's just what I need.

> > In my particular case, I need to work around an mcs bug that prevents
> > me from defining a class member, so reflection along the lines of
> Which means __MonoCS__ is perfect for you.  But please file the bug at
> buzilla.ximian.com if it isn't already reported.

Already done. See http://bugzilla.ximian.com/show_bug.cgi?id=58055



Michi Henning              Ph: +61 4 1118-2700
ZeroC, Inc.                http://www.zeroc.com

More information about the Mono-devel-list mailing list