[LIBJPEG]

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
This commit is contained in:
Timo Kreuzer 2010-05-31 14:00:50 +00:00
parent 633c71de4e
commit 336bd01387

View file

@ -1,11 +1,11 @@
<?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>