This Trac instance is not used for development anymore!

We migrated our development workflow to git and Gitea.
To test the future redirection, replace trac by ariadne in the page URL.

Changeset 9576 for ps


Ignore:
Timestamp:
05/29/11 23:13:21 (14 years ago)
Author:
philip
Message:

Add a manifest hack to fix building in VC2008+, when loading DLLs built in VC2005

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/source/lib/sysdep/os/win/manifest.cpp

    r7316 r9576  
    1 /* Copyright (c) 2010 Wildfire Games
     1/* Copyright (c) 2011 Wildfire Games
    22 *
    33 * Permission is hereby granted, free of charge, to any person obtaining
     
    4040#  pragma comment(linker, "\"/manifestdependency:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df'\"")
    4141# endif
     42
     43/*
     44The game uses some DLLs that were built with VC80. The CRT DLL wants to find itself
     45inside the executable's manifest, else it complains with R6034.
     46If we're building with VC90+, we need to explicitly include the appropriate manifest
     47entries (in addition to the VC90 CRT entries that will be added automatically).
     48(This is kind of a dirty hack.)
     49*/
     50#if MSC_VERSION >= 1500 && ARCH_IA32
     51# ifdef NDEBUG
     52#  pragma comment(linker, "\"/manifestdependency:type='win32' name='Microsoft.VC80.CRT' version='8.0.50727.4053' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b'\"")
     53# else
     54#  pragma comment(linker, "\"/manifestdependency:type='win32' name='Microsoft.VC80.DebugCRT' version='8.0.50727.4053' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b'\"")
     55# endif
    4256#endif
     57
     58#endif
Note: See TracChangeset for help on using the changeset viewer.