mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-06 08:09:19 +00:00
DolphinNoGUI: Replace deprecated signal.h
header
This commit is contained in:
parent
88122ae956
commit
71da0f2d24
1 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue