summaryrefslogtreecommitdiff
path: root/setup_once.h
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2011-02-22 13:16:51 (GMT)
committerDaniel Stenberg <daniel@haxx.se>2011-03-15 10:29:12 (GMT)
commit0f226fb8e44c60d850d589718eb80560bf355502 (patch)
treef9d7622abe6fb3261ecc359c1695c7e4264cc762 /setup_once.h
parentffb7697ac8bf447c79475db7a708fb6fc48a42df (diff)
downloadc-ares-0f226fb8e44c60d850d589718eb80560bf355502.zip
c-ares-0f226fb8e44c60d850d589718eb80560bf355502.tar.gz
c-ares-0f226fb8e44c60d850d589718eb80560bf355502.tar.bz2
Watt-32: use errno
Make sure Watt-32 programs use 'errno' even on Win32 targets
Diffstat (limited to 'setup_once.h')
-rw-r--r--setup_once.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup_once.h b/setup_once.h
index 14f3d55..54c46b4 100644
--- a/setup_once.h
+++ b/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