Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(484)

Unified Diff: asan_win.cc

Issue 5689069: AddressSanitizer: get rid of stdlib.h, leave (smaller) stddef.h instead. (Closed) Base URL: https://llvm.org/svn/llvm-project/compiler-rt/trunk/lib/asan/
Patch Set: Created 13 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « asan_rtl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: asan_win.cc
===================================================================
--- asan_win.cc (revision 151158)
+++ asan_win.cc (working copy)
@@ -16,6 +16,7 @@
#include <dbghelp.h>
#include <stdio.h> // FIXME: get rid of this.
+#include <stdlib.h>
#include <new> // FIXME: temporarily needed for placement new in AsanLock.
@@ -260,6 +261,10 @@
_exit(exitcode);
}
+int Atexit(void (*function)(void)) {
+ return atexit(function);
+}
+
} // namespace __asan
#endif // _WIN32
« no previous file with comments | « asan_rtl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b