]> granicus.if.org Git - clang/commitdiff
Remove test case dependancy on platform headers.
authorTed Kremenek <kremenek@apple.com>
Thu, 25 Feb 2010 01:16:07 +0000 (01:16 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 25 Feb 2010 01:16:07 +0000 (01:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97088 91177308-0d34-0410-b5e6-96231b3b80d8

test/Analysis/unix-fns.c

index 2bc2efa2d72356eb3301b848c7d5e6f74ec17d91..777ad197987d39e7e03563b493dda0e00c390ae1 100644 (file)
@@ -1,7 +1,11 @@
 // RUN: %clang_cc1 -analyze -analyzer-check-objc-mem %s -analyzer-store=region
 // RUN: %clang_cc1 -analyze -analyzer-check-objc-mem %s -analyzer-store=basic
 
-#include <fcntl.h>
+#ifndef O_CREAT
+#define O_CREAT 0x0200
+#define O_RDONLY 0x0000
+#endif
+int open(const char *, int, ...);
 
 void test_open(const char *path) {
   int fd;