[LIBJPEG]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Mon, 31 May 2010 14:00:50 +0000 (14:00 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Mon, 31 May 2010 14:00:50 +0000 (14:00 +0000)
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

reactos/dll/3rdparty/libjpeg/libjpeg.rbuild

index 990e595..9749f7a 100644 (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>