Skip to content

Commit 6cce2d4

Browse files
committed
Fix inclusion of LLVM config file.
llvm/Config/config.h is now private. I still need to check if this include is really required for LLVM 3.3/3.4.
1 parent efa2beb commit 6cce2d4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dmd2/root/port.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// Portable wrapper around compiler/system specific things.
1111
// The idea is to minimize #ifdef's in the app code.
1212

13-
#if defined(IN_LLVM) && (LDC_LLVM_VER >= 303)
13+
#if defined(IN_LLVM) && ((LDC_LLVM_VER == 303) || (LDC_LLVM_VER == 304))
1414
#include "llvm/Config/config.h"
1515
#endif
1616
#if IN_LLVM

dmd2/root/rmem.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#ifndef ROOT_MEM_H
1111
#define ROOT_MEM_H
1212

13-
#if defined(IN_LLVM) && (LDC_LLVM_VER >= 303)
13+
#if defined(IN_LLVM) && ((LDC_LLVM_VER == 303) || (LDC_LLVM_VER == 304))
1414
#include "llvm/Config/config.h"
1515
#endif
1616
#include <stddef.h> // for size_t

0 commit comments

Comments
 (0)