remove unused function, fixes mingw build
parent
ddd04a7b46
commit
517e8ea426
18
src/os.cpp
18
src/os.cpp
|
@ -390,15 +390,15 @@ static int os_exec_process_posix(const char *exe, ZigList<const char *> &args,
|
|||
|
||||
#if defined(ZIG_OS_WINDOWS)
|
||||
|
||||
static void win32_panic(const char *str) {
|
||||
DWORD err = GetLastError();
|
||||
LPSTR messageBuffer = nullptr;
|
||||
FormatMessageA(
|
||||
FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
|
||||
NULL, err, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPSTR)&messageBuffer, 0, NULL);
|
||||
zig_panic(str, messageBuffer);
|
||||
LocalFree(messageBuffer);
|
||||
}
|
||||
//static void win32_panic(const char *str) {
|
||||
// DWORD err = GetLastError();
|
||||
// LPSTR messageBuffer = nullptr;
|
||||
// FormatMessageA(
|
||||
// FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
|
||||
// NULL, err, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPSTR)&messageBuffer, 0, NULL);
|
||||
// zig_panic(str, messageBuffer);
|
||||
// LocalFree(messageBuffer);
|
||||
//}
|
||||
|
||||
static int os_exec_process_windows(const char *exe, ZigList<const char *> &args,
|
||||
Termination *term, Buf *out_stderr, Buf *out_stdout)
|
||||
|
|
Loading…
Reference in New Issue