[ scummvm-Patches-2909854 ] create_msvc: Disable language extensions for engines
SourceForge.net
noreply at sourceforge.net
Mon Dec 7 06:36:58 CET 2009
Patches item #2909854, was opened at 2009-12-07 00:36
Message generated for change (Tracker Item Submitted) made by littleboy
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=418822&aid=2909854&group_id=37116
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Julien (littleboy)
Assigned to: Nobody/Anonymous (nobody)
Summary: create_msvc: Disable language extensions for engines
Initial Comment:
Project files have language extensions turned on by default. This allows things like enumeration forward declarations to compile fine on MSVC and fail on GCC.
This patch disables language extensions for all engines via the global property file (and turns them back on in the existing special case for the scummvm project file as some seem to used in Windows include files).
After applying the patch, MSVC will throw errors and warnings when language extensions are used. A second patch is needed to fix an error in memorypool.h (identifier not found) and some warnings in the sci engine (formal parameter 'byte' was previously defined as a type).
Tested on Windows with MSVC 9 and Linux with GCC 4.4.1 (OpenSUSE).
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=418822&aid=2909854&group_id=37116
More information about the Scummvm-tracker
mailing list