]> git.llucax.com Git - software/eventxx.git/commitdiff
Add missing include
authorLeandro Lucarella <llucax@gmail.com>
Thu, 16 Apr 2009 23:35:38 +0000 (20:35 -0300)
committerLeandro Lucarella <llucax@gmail.com>
Thu, 16 Apr 2009 23:35:38 +0000 (20:35 -0300)
test/prio-test.cpp

index 613d111d3959499c2743aa4de7167c399fb49a42..af5af5e6e998d5172632db9cf7e4282539c38be9 100644 (file)
@@ -2,10 +2,12 @@
 #include <iostream>
 #include <map>
 #include <csignal>
 #include <iostream>
 #include <map>
 #include <csignal>
+#include <cstdlib>
 
 using eventxx::dispatcher;
 
 
 using eventxx::dispatcher;
 
-#define OSASSERT(func, ...) if (func(__VA_ARGS__) == -1) { perror(#func "()"); exit(1); }
+#define OSASSERT(func, ...) \
+       if (func(__VA_ARGS__) == -1) { perror(#func "()"); std::exit(1); }
 
 struct handler
 {
 
 struct handler
 {