22 #if !defined(HAVE_THREADSAFE_GETADDRINFO) && !defined(_PSP)
26 # define GET_ERRNO errno
27 # ifndef HAVE_THREADSAFE_GETADDRINFO
28 # define GET_AT_ERRNO h_errno
30 # define GET_AT_ERRNO errno
32 # define GET_SOCK_ERRNO errno
33 # define ERRFMT "Error string was: %s"
34 # define ERRPARAM strerror(errNo)
35 # if !defined(HAVE_THREADSAFE_GETADDRINFO) && !defined(_PSP)
36 # define AT_ERRPARAM hstrerror(errNo)
38 # define AT_ERRPARAM strerror(errNo)
42 # define GET_ERRNO GetLastError()
43 # define GET_AT_ERRNO WSAGetLastError()
44 # define GET_SOCK_ERRNO WSAGetLastError()
45 # define ERRFMT "Error code was: %d"
46 # define ERRPARAM errNo
47 # define AT_ERRPARAM errNo