[Mono-dev] (no subject)

Sridhar Kulkarni sridharkulkarni at msn.com
Thu Sep 8 06:33:50 EDT 2005


Hi,

I am having GetPathName method call in my C# code. I am using the same 
source file to compile both on windows and linux. This method calls some 
WIN32 APIs within it. This function also has linux specific code. As there 
is no #ifdef directive is not available in C# how to go about this. I tried 
using

#if __linux

...............
.....

#else //for windows
..........
.  .. .
#endif

But this doesn't work. How to go about this.

Anybody any idea?

-Sri

_________________________________________________________________
He is deaf and dumb. http://www.iqbalthefilm.com And he is a furiously fast 
bowler. He is Iqbal




More information about the Mono-devel-list mailing list