Watt-32: use errno

Make sure Watt-32 programs use 'errno' even on Win32 targets
pull/4/head
Gisle Vanem 14 years ago committed by Daniel Stenberg
parent ffb7697ac8
commit 0f226fb8e4
  1. 2
      setup_once.h

@ -367,7 +367,7 @@ typedef int sig_atomic_t;
* (or equivalent) on this platform to hide platform details to code using it.
*/
#ifdef WIN32
#if defined(WIN32) && !defined(WATT32)
#define ERRNO ((int)GetLastError())
#define SET_ERRNO(x) (SetLastError((DWORD)(x)))
#else

Loading…
Cancel
Save