forked from OSchip/llvm-project
				
			
							parent
							
								
									29cb68f761
								
							
						
					
					
						commit
						a80e9f0a19
					
				| 
						 | 
					@ -126,12 +126,13 @@ static void HandleInclude(const char *Buffer) {
 | 
				
			||||||
    //
 | 
					    //
 | 
				
			||||||
    // NOTE: Right now, there is only one directory.  We need to eventually add
 | 
					    // NOTE: Right now, there is only one directory.  We need to eventually add
 | 
				
			||||||
    // support for more.
 | 
					    // support for more.
 | 
				
			||||||
    Filename = IncludeDirectory + "/" + Filename;
 | 
					    std::string NextFilename = IncludeDirectory + "/" + Filename;
 | 
				
			||||||
    yyin = fopen(Filename.c_str(), "r");
 | 
					    yyin = fopen(NextFilename.c_str(), "r");
 | 
				
			||||||
    if (yyin == 0) {
 | 
					    if (yyin == 0) {
 | 
				
			||||||
      err() << "Could not find include file '" << Filename << "'!\n";
 | 
					      err() << "Could not find include file '" << Filename << "'!\n";
 | 
				
			||||||
      abort();
 | 
					      abort();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					    Filename = NextFilename;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // Add the file to our include stack...
 | 
					  // Add the file to our include stack...
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue