diff options
author | Jeff Cohen <jeffc@jolt-lang.org> | 2005-01-09 04:13:09 +0000 |
---|---|---|
committer | Jeff Cohen <jeffc@jolt-lang.org> | 2005-01-09 04:13:09 +0000 |
commit | 12f82b7e37ae9133819a215225c13595fbcba9e2 (patch) | |
tree | 435386bea6fc0b4300942a6ab6a4c6f285dc123d /win32 | |
parent | 6e7c47c12de18c2f04605e12bfa83cf9d3715129 (diff) | |
download | external_llvm-12f82b7e37ae9133819a215225c13595fbcba9e2.zip external_llvm-12f82b7e37ae9133819a215225c13595fbcba9e2.tar.gz external_llvm-12f82b7e37ae9133819a215225c13595fbcba9e2.tar.bz2 |
Workaround a VC++ bug. Microsoft puts the hash_map class in namespace stdext, but
this classes uses a utility function in namespace std. But Microsoft apparently
assumes everyone will "using namespace std;". As LLVM doesn't.... Add a
"use std::_Distance;" to get it working.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19411 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'win32')
-rw-r--r-- | win32/Configure/Configure.vcproj | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/Configure/Configure.vcproj b/win32/Configure/Configure.vcproj index c0178cb..fd7de11 100644 --- a/win32/Configure/Configure.vcproj +++ b/win32/Configure/Configure.vcproj @@ -98,7 +98,7 @@ <Tool Name="VCCustomBuildTool" Description="Generating $(SolutionDir)llvm\ADT\hash_map" - CommandLine="..\tools\sed <$(InputPath) >$(ProjectDir)..\llvm\ADT\hash_map "s/#undef HAVE_GLOBAL_HASH_MAP/#define HAVE_GLOBAL_HASH_MAP 1/;/using HASH_NAMESPACE\:\:hash;.*$/{D};/#include.*HashExtras.*$/{D};s/define HASH_NAMESPACE std/define HASH_NAMESPACE stdext/" + CommandLine="..\tools\sed <$(InputPath) >$(ProjectDir)..\llvm\ADT\hash_map "s/#undef HAVE_GLOBAL_HASH_MAP/#define HAVE_GLOBAL_HASH_MAP 1/;/using HASH_NAMESPACE\:\:hash;.*$/{D};/#include.*HashExtras.*$/{D};s/define HASH_NAMESPACE std/define HASH_NAMESPACE stdext\nusing std::_Distance;/" " Outputs="$(ProjectDir)..\llvm\ADT\hash_map"/> </FileConfiguration> |