Skip to content

Commit

Permalink
Fix inclusion of LLVM config file.
Browse files Browse the repository at this point in the history
llvm/Config/config.h is now private. I still need to check if this include is really required for LLVM 3.3/3.4.
  • Loading branch information
redstar committed Jun 23, 2014
1 parent efa2beb commit 6cce2d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dmd2/root/port.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// Portable wrapper around compiler/system specific things.
// The idea is to minimize #ifdef's in the app code.

#if defined(IN_LLVM) && (LDC_LLVM_VER >= 303)
#if defined(IN_LLVM) && ((LDC_LLVM_VER == 303) || (LDC_LLVM_VER == 304))
#include "llvm/Config/config.h"
#endif
#if IN_LLVM
Expand Down
2 changes: 1 addition & 1 deletion dmd2/root/rmem.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#ifndef ROOT_MEM_H
#define ROOT_MEM_H

#if defined(IN_LLVM) && (LDC_LLVM_VER >= 303)
#if defined(IN_LLVM) && ((LDC_LLVM_VER == 303) || (LDC_LLVM_VER == 304))
#include "llvm/Config/config.h"
#endif
#include <stddef.h> // for size_t
Expand Down

0 comments on commit 6cce2d4

Please sign in to comment.