#4700 closed defect (fixed)
MSVC compilation broken with r47595
Reported by: | Templier | Owned by: | lordhoto |
---|---|---|---|
Priority: | normal | Component: | Port: Win32 |
Version: | Keywords: | build | |
Cc: | Game: |
Description
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'
Ticket imported from: #2895217. Ticket imported from: bugs/4700.
Attachments (1)
Change History (3)
by , 15 years ago
Attachment: | ScummVM-MSVC-r47975.patch added |
---|
comment:1 by , 15 years ago
Owner: | set to |
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:2 by , 6 years ago
Component: | → Port: Win32 |
---|
Patch (against trunk)