[Mono-dev] [PATCH] [Windows] Define version macros for Windows SDK

Kornél Pál kornelpal at gmail.com
Mon Mar 10 09:25:50 EDT 2008


This patch defines macros for Windows SDK in CFLAGS and CPPFLAGS. I used 
this because this is inherited by libgc.

Also defines UNICODE to ensure that Unicode (W) version of the functions are 
used. For some reason I was unable to find out Mono already uses Unicode 
versions of Windows API functions but libgc used ANSI (A) versions altough 
it's code is prepared for Unicode.

I removed Windows version macros from individual source files. This helps to 
maintain the entire source. Also note that if the currently specified 
version macros should be modified for later versions will most likely cause 
Mono not to run on Windows 2000. So this ensures compatibility with Windows 
2000 as well.

I also modified winconfig.h to define Windows version based on target 
platform and adjusted HAVE_GETPROCESSID and SIZEOF_VOID_P according to the 
target platform. Also udpated VERSION to "1.9".

Please review and approve the patch.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: WindowsDefines.diff.txt
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080310/4de55086/attachment.txt 

More information about the Mono-devel-list mailing list