mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-16 04:07:51 +00:00
DolphinNoGUI: Replace deprecated signal.h
header
This commit is contained in:
parent
88122ae956
commit
71da0f2d24
@ -4,10 +4,10 @@
|
||||
#include "DolphinNoGUI/Platform.h"
|
||||
|
||||
#include <OptionParser.h>
|
||||
#include <csignal>
|
||||
#include <cstddef>
|
||||
#include <cstdio>
|
||||
#include <cstring>
|
||||
#include <signal.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
@ -307,8 +307,8 @@ int main(int argc, char* argv[])
|
||||
});
|
||||
|
||||
#ifdef _WIN32
|
||||
signal(SIGINT, signal_handler);
|
||||
signal(SIGTERM, signal_handler);
|
||||
std::signal(SIGINT, signal_handler);
|
||||
std::signal(SIGTERM, signal_handler);
|
||||
#else
|
||||
// Shut down cleanly on SIGINT and SIGTERM
|
||||
struct sigaction sa;
|
||||
|
Loading…
Reference in New Issue
Block a user