From b58b8370baf493658e4d9ef72c9a591b51aa45b7 Mon Sep 17 00:00:00 2001 From: Zeex Date: Sat, 8 Sep 2018 00:05:36 +0600 Subject: Fix compile errors and remove uses of nullptr --- tests/test.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/test.cpp b/tests/test.cpp index 5536a36..7ba167a 100644 --- a/tests/test.cpp +++ b/tests/test.cpp @@ -1,3 +1,4 @@ +#include #include #include @@ -15,7 +16,7 @@ typedef void (*foo_func_t)(); #endif extern "C" void FOO_CALL foo(); -foo_func_t foo_tr = nullptr; +foo_func_t foo_tr = 0; void foo_hooked() { std::cout << "foo_hooked() called" << std::endl;; @@ -66,7 +67,7 @@ int main() { return EXIT_FAILURE; } foo_tr = (foo_func_t)foo_hook_tr.GetTrampoline(); - if (foo_tr == nullptr) { + if (foo_tr == 0) { std::cout << "Failed to build trampoline" << std::endl; return EXIT_FAILURE; } -- cgit v1.1