Instead of disabling a warning when using "main" as something else then the main function, define it to mainptr (it's used as a pointer variable) globally, this approach is portable.
svn path=/trunk/; revision=47492
<?xml version="1.0"?>
<!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd">
<module name="libjpeg" type="win32dll" entrypoint="0" installbase="system32" installname="libjpeg.dll" allowwarnings="true" crt="msvcrt">
- <compilerflag compilerset="gcc">-Wno-main</compilerflag>
<define name="WIN32" />
<define name="_WINDOWS" />
<define name="_MBCS" />
<define name="JPEG_DLL" />
+ <define name="main">mainptr</define>
<include base="libjpeg">.</include>
<file>jcapimin.c</file>
<file>jcapistd.c</file>