Browse Source

Visual studio 2010 compatibility

pull/1/head
Tarmo Pikaro 13 years ago committed by triton
parent
commit
3d07389e69
  1. 4
      src/Generator/Types/TypeMap.cs
  2. 2
      src/Parser/Parser.cpp

4
src/Generator/Types/TypeMap.cs

@ -133,8 +133,8 @@ namespace Cxxi.Types
private void SetupTypeMaps(IEnumerable<System.Type> types) private void SetupTypeMaps(IEnumerable<System.Type> types)
{ {
foreach (var typeMap in types) foreach (var typeMap in types)
{ {
var attrs = typeMap.GetCustomAttributes(typeof(TypeMapAttribute)); var attrs = typeMap.GetCustomAttributes(typeof(TypeMapAttribute), true);
if (attrs == null) continue; if (attrs == null) continue;
foreach (TypeMapAttribute attr in attrs) foreach (TypeMapAttribute attr in attrs)

2
src/Parser/Parser.cpp

@ -1625,7 +1625,7 @@ ParserResult^ Parser::Parse(const std::string& File)
client->EndSourceFile(); client->EndSourceFile();
// Convert the diagnostics to the managed types // Convert the diagnostics to the managed types
for(auto& Diag : DiagClient->Diagnostics) for each (auto& Diag in DiagClient->Diagnostics)
{ {
using namespace clix; using namespace clix;

Loading…
Cancel
Save