[ros-diffs] [tkreuzer] 47492: [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.

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Mon May 31 16:00:52 CEST 2010


Author: tkreuzer
Date: Mon May 31 16:00:50 2010
New Revision: 47492

URL: http://svn.reactos.org/svn/reactos?rev=47492&view=rev
Log:
[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.

Modified:
    trunk/reactos/dll/3rdparty/libjpeg/libjpeg.rbuild

Modified: trunk/reactos/dll/3rdparty/libjpeg/libjpeg.rbuild
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/3rdparty/libjpeg/libjpeg.rbuild?rev=47492&r1=47491&r2=47492&view=diff
==============================================================================
--- trunk/reactos/dll/3rdparty/libjpeg/libjpeg.rbuild [iso-8859-1] (original)
+++ trunk/reactos/dll/3rdparty/libjpeg/libjpeg.rbuild [iso-8859-1] Mon May 31 16:00:50 2010
@@ -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>




More information about the Ros-diffs mailing list