diff --git a/dmd2/root/port.c b/dmd2/root/port.c index b634b924..820a36e8 100644 --- a/dmd2/root/port.c +++ b/dmd2/root/port.c @@ -340,12 +340,12 @@ char *Port::strupr(char *s) int Port::memicmp(const char *s1, const char *s2, int n) { - return ::_memicmp(s1, s2, n); + return ::memicmp(s1, s2, n); } int Port::stricmp(const char *s1, const char *s2) { - return ::_stricmp(s1, s2); + return ::stricmp(s1, s2); } #endif diff --git a/dmd2/root/port.h b/dmd2/root/port.h index 6714cd71..c02675d0 100644 --- a/dmd2/root/port.h +++ b/dmd2/root/port.h @@ -10,6 +10,10 @@ // 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) +#include "llvm/Config/config.h" +#endif + #include "longdouble.h" #if _MSC_VER