@@ -11,10 +11,12 @@ * Alternatively, it may be distributed under the terms of the GNU General * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ + +#include #import "OFObject.h" OF_ASSUME_NONNULL_BEGIN @@ -64,11 +66,11 @@ * signal-safe operations like setting a variable or calling a * signal-safe function! */ - (void)applicationDidReceiveSIGINT; -#ifndef OF_WINDOWS +#ifdef SIGHUP /*! * @brief A method which is called when the application received a SIGHUP. * * This signal is not available on Windows. * @@ -76,11 +78,13 @@ * message dispatching is not signal-safe! You are only allowed to do * signal-safe operations like setting a variable or calling a * signal-safe function! */ - (void)applicationDidReceiveSIGHUP; +#endif +#ifdef SIGUSR1 /*! * @brief A method which is called when the application received a SIGUSR1. * * This signal is not available on Windows. * @@ -88,11 +92,13 @@ * message dispatching is not signal-safe! You are only allowed to do * signal-safe operations like setting a variable or calling a * signal-safe function! */ - (void)applicationDidReceiveSIGUSR1; +#endif +#ifdef SIGUSR2 /*! * @brief A method which is called when the application received a SIGUSR2. * * This signal is not available on Windows. *