exit() -> ::exit()

This commit is contained in:
Alexander Karatarakis 2017-03-22 17:43:49 -07:00
parent 79830d3cac
commit 27bc606020

View File

@ -20,14 +20,14 @@ namespace vcpkg::Checks
#ifndef NDEBUG #ifndef NDEBUG
std::abort(); std::abort();
#else #else
exit(EXIT_FAILURE); ::exit(EXIT_FAILURE);
#endif #endif
} }
void exit_with_code(const LineInfo& line_info, const int exit_code) void exit_with_code(const LineInfo& line_info, const int exit_code)
{ {
print_line_info_if_debug(line_info); print_line_info_if_debug(line_info);
exit(exit_code); ::exit(exit_code);
} }
__declspec(noreturn) void exit_with_message(const LineInfo& line_info, const char* errorMessage) __declspec(noreturn) void exit_with_message(const LineInfo& line_info, const char* errorMessage)