diff mbox series

[Ada] Remove unused define

Message ID 20210707162548.GA2543304@adacore.com
State New
Headers show
Series [Ada] Remove unused define | expand

Commit Message

Pierre-Marie de Rodat July 7, 2021, 4:25 p.m. UTC
__MINWGW32__ is typo and was not working, but anyway the MSG_WAITALL
is defined on Windows.

Tested on x86_64-pc-linux-gnu, committed on trunk

gcc/ada/

	* s-oscons-tmplt.c (MSG_WAITALL): Remove wrong #ifdef
	__MINWGW32__.
diff mbox series

Patch

diff --git a/gcc/ada/s-oscons-tmplt.c b/gcc/ada/s-oscons-tmplt.c
--- a/gcc/ada/s-oscons-tmplt.c
+++ b/gcc/ada/s-oscons-tmplt.c
@@ -1463,14 +1463,8 @@  CND(MSG_PEEK, "Peek at incoming data")
 CND(MSG_EOR, "Send end of record")
 
 #ifndef MSG_WAITALL
-#ifdef __MINWGW32__
-/* The value of MSG_WAITALL is 8.  Nevertheless winsock.h doesn't
-   define it, but it is still usable as we link to winsock2 API.  */
-# define MSG_WAITALL (1 << 3)
-#else
 # define MSG_WAITALL -1
 #endif
-#endif
 CND(MSG_WAITALL, "Wait for full reception")
 
 #ifndef MSG_NOSIGNAL