summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorCedric Venet <cedric.venet@laposte.net>2009-02-21 17:14:49 +0000
committerCedric Venet <cedric.venet@laposte.net>2009-02-21 17:14:49 +0000
commit4fc88b779ea12f4300c40889b87647aab6030514 (patch)
treec6d2a854ed04398edf9ad201d7264236d349e77f /clang/lib
parentda88fb9c73f8d4b3b5726e55ebc978e6fb88ebbe (diff)
downloadbcm5719-llvm-4fc88b779ea12f4300c40889b87647aab6030514.tar.gz
bcm5719-llvm-4fc88b779ea12f4300c40889b87647aab6030514.zip
Fix build on windows.
Should clang have a config.h or should we use the config.h of llvm or using the preprocessor is OK? I did a quick fix here, but having a guideline on how to handle non portable function would be great (or ask ted to stop breaking the windows build :)). llvm-svn: 65233
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/AST/ASTContext.cpp3
-rw-r--r--clang/lib/Analysis/CFRefCount.cpp4
2 files changed, 6 insertions, 1 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index e24de533146..4a84e3d66ca 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/lib/AST/ASTContext.cpp
@@ -2816,7 +2816,7 @@ QualType ASTContext::mergeTypes(QualType LHS, QualType RHS) {
if (areCompatVectorTypes(LHS->getAsVectorType(), RHS->getAsVectorType()))
return LHS;
return QualType();
- case Type::ObjCInterface:
+ case Type::ObjCInterface: {
// Check if the interfaces are assignment compatible.
const ObjCInterfaceType* LHSIface = LHS->getAsObjCInterfaceType();
const ObjCInterfaceType* RHSIface = RHS->getAsObjCInterfaceType();
@@ -2825,6 +2825,7 @@ QualType ASTContext::mergeTypes(QualType LHS, QualType RHS) {
return LHS;
return QualType();
+ }
case Type::ObjCQualifiedId:
// Distinct qualified id's are not compatible.
return QualType();
diff --git a/clang/lib/Analysis/CFRefCount.cpp b/clang/lib/Analysis/CFRefCount.cpp
index 4d4bd059d7b..a602de2dbc2 100644
--- a/clang/lib/Analysis/CFRefCount.cpp
+++ b/clang/lib/Analysis/CFRefCount.cpp
@@ -35,6 +35,10 @@
using namespace clang;
+#ifdef _MSC_VER
+# define strncasecmp _strnicmp
+#endif // #ifdef _MSC_VER
+
//===----------------------------------------------------------------------===//
// Utility functions.
//===----------------------------------------------------------------------===//
OpenPOWER on IntegriCloud