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 |