Getting rid of global cdtors

Kagamin spam at here.lot
Mon Jun 15 10:25:18 UTC 2020


auto our_freeaddrinfo(A...)(A a) @system
{
   initialize;
   if (freeaddrinfoPointer)
     // May be null if WSAStartup() failed, just do nothing
     return;
   return freeaddrinfoPointer(a);
}

My, my, that's a subtle bug.

Also winsock 2.2 is 0x0202, not 0x2020.


More information about the Digitalmars-d mailing list