[ scummvm-Bugs-2895217 ] MSVC compilation broken with r47595
SourceForge.net
noreply at sourceforge.net
Tue Nov 10 15:32:45 CET 2009
Bugs item #2895217, was opened at 2009-11-10 09:32
Message generated for change (Tracker Item Submitted) made by littleboy
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=418820&aid=2895217&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: Compiler error
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Julien (littleboy)
Assigned to: Nobody/Anonymous (nobody)
Summary: MSVC compilation broken with r47595
Initial Comment:
Changes to main.cpp in 47595 broke compilation with Visual Studio. This seems to be caused by the inclusion of scummsys.h before including sdl.h & windows.h
Moving windows.h inclusion at the top of the file (and removing inclusion of scummsys.h) solves the problem.
Tested with
- VC9 (using latest version of scummvm libs), freshly created project files
- VC10 (converted project files from a few days ago)
Error messages:
sdl_config_win32.h(37): error C2371: 'int32_t' : redefinition; different basic types
common\scummsys.h(224) : see declaration of 'int32_t'
sdl_config_win32.h(38): error C2371: 'uint32_t' : redefinition; different basic types
common\scummsys.h(225) : see declaration of 'uint32_t'
winnt.h(1140): warning C4005: 'ARRAYSIZE' : macro redefinition
common\util.h(62) : see previous definition of 'ARRAYSIZE'
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=418820&aid=2895217&group_id=37116
More information about the Scummvm-tracker
mailing list