Remove redefinitions of SIG_* macros in win32_port.h.
authorNathan Bossart <[email protected]>
Fri, 17 Jan 2025 02:55:24 +0000 (20:55 -0600)
committerNathan Bossart <[email protected]>
Fri, 17 Jan 2025 02:55:24 +0000 (20:55 -0600)
It is not clear why these were originally added.  One hypothesis is
that an ancient version of MinGW didn't define them.  In any case,
they appear to now be superfluous, so let's remove them.  If
nothing else, the buildfarm might offer us clues to their origins.

Reviewed-by: Thomas Munro
Discussion: https://postgr.es/m/Z4chOKfnthRH71mw%40nathan

src/include/port/win32_port.h

index 7900272e8d18d9a2bc9a65d069d68899b15bea56..ff7028bdc81f9ecb3a6ab5b7c13227220d58d51b 100644 (file)
 
 #define sigmask(sig) ( 1 << ((sig)-1) )
 
-/* Signal function return values */
-#undef SIG_DFL
-#undef SIG_ERR
-#undef SIG_IGN
-#define SIG_DFL ((pqsigfunc)0)
-#define SIG_ERR ((pqsigfunc)-1)
-#define SIG_IGN ((pqsigfunc)1)
-
 /* Some extra signals */
 #define SIGHUP                         1
 #define SIGQUIT                                3