[llvm-commits] [compiler-rt] r172810 - /compiler-rt/trunk/lib/asan/asan_intercepted_functions.h

Alexander Potapenko glider at google.com
Fri Jan 18 04:31:16 PST 2013


Author: glider
Date: Fri Jan 18 06:31:16 2013
New Revision: 172810

URL: http://llvm.org/viewvc/llvm-project?rev=172810&view=rev
Log:
[ASan] Fix compilation on Mac.

Modified:
    compiler-rt/trunk/lib/asan/asan_intercepted_functions.h

Modified: compiler-rt/trunk/lib/asan/asan_intercepted_functions.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_intercepted_functions.h?rev=172810&r1=172809&r2=172810&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_intercepted_functions.h (original)
+++ compiler-rt/trunk/lib/asan/asan_intercepted_functions.h Fri Jan 18 06:31:16 2013
@@ -18,6 +18,8 @@
 #include "interception/interception.h"
 #include "sanitizer_common/sanitizer_platform_interceptors.h"
 
+#include <stdarg.h>
+
 using __sanitizer::uptr;
 
 // Use macro to describe if specific function should be
@@ -227,15 +229,15 @@
                              CFAllocatorRef alloc, CFStringRef str);
 DECLARE_FUNCTION_AND_WRAPPER(void, free, void* ptr);
 
-DECLARE_FUNCTION_AND_WRAPPER(int, vscanf, const char *format, va_list ap)
+DECLARE_FUNCTION_AND_WRAPPER(int, vscanf, const char *format, va_list ap);
 DECLARE_FUNCTION_AND_WRAPPER(int, vsscanf, const char *str, const char *format,
-                             va_list ap)
+                             va_list ap);
 DECLARE_FUNCTION_AND_WRAPPER(int, vfscanf, void *stream, const char *format,
-                             va_list ap)
-DECLARE_FUNCTION_AND_WRAPPER(int, scanf, const char *format, ...)
-DECLARE_FUNCTION_AND_WRAPPER(int, fscanf, void* stream, const char *format, ...)
+                             va_list ap);
+DECLARE_FUNCTION_AND_WRAPPER(int, scanf, const char *format, ...);
+DECLARE_FUNCTION_AND_WRAPPER(int, fscanf, void* stream, const char *format, ...);
 DECLARE_FUNCTION_AND_WRAPPER(int, sscanf,
-                             const char *str, const char *format, ...)
+                             const char *str, const char *format, ...);
 
 #if MAC_INTERPOSE_FUNCTIONS && !defined(MISSING_BLOCKS_SUPPORT)
 DECLARE_FUNCTION_AND_WRAPPER(void, dispatch_group_async,





More information about the llvm-commits mailing list