adjustments in compatibility.h for vs2010 and STLPort
Higher _MSC_VER. The definitions of std::min and std::max workarounds should be enclosed within _STLP_INTERNAL_ALGOBASE_H because STLPort provides the fix already.
This commit is contained in:
parent
3813828dce
commit
6ae4d1e7e5
1 changed files with 8 additions and 3 deletions
|
|
@ -40,7 +40,7 @@
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(_MSC_VER) && (_MSC_VER < 1300)
|
#if defined(_MSC_VER) && (_MSC_VER <= 1600)
|
||||||
/*
|
/*
|
||||||
Maarten: added this code here because Mirkosoft has the
|
Maarten: added this code here because Mirkosoft has the
|
||||||
nasty habit of #define min and max in stdlib.h (and windows.h)
|
nasty habit of #define min and max in stdlib.h (and windows.h)
|
||||||
|
|
@ -57,6 +57,8 @@ Olivier: this has been removed in .NET :) One step more standard...
|
||||||
#undef max // as they come in std::pairs
|
#undef max // as they come in std::pairs
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef _STLP_INTERNAL_ALGOBASE_H
|
||||||
|
|
||||||
// add min and max to std...
|
// add min and max to std...
|
||||||
namespace std
|
namespace std
|
||||||
{
|
{
|
||||||
|
|
@ -77,6 +79,9 @@ namespace std
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif // _STLP_INTERNAL_ALGOBASE_H
|
||||||
// _MSC_VER
|
|
||||||
|
#endif // _MSC_VER
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue