We use 
#if __MonoCS__

using Mono.Unix;

#endif

In System.Windows.Forms to compile things only when mcs is used.

Cheers,

  Peter

-----Original Message-----
From: "Fabien Meghazi" <[EMAIL PROTECTED]>
To: "ML:Mono" <[EMAIL PROTECTED]>
Date: 03 December, 2004 09:46
Subject: [Mono-list] detecting mono or microsoft compiler with preprocessor


>Hi all,
>
>Is there a #define preprocessor definition that would allow to use
>"if" "else" preprocessor statements for conditionnal compiling for
>mono and microsoft compiler ?
>
>
>-- 
>Fabien Meghazi
>http://www.amigrave.com
>_______________________________________________
>Mono-list maillist  -  [EMAIL PROTECTED]
>http://lists.ximian.com/mailman/listinfo/mono-list
>
>
_______________________________________________
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to