]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Dammit, autoconf!
authorNick Mathewson <nickm@torproject.org>
Sun, 12 Jul 2015 19:02:43 +0000 (15:02 -0400)
committerNick Mathewson <nickm@torproject.org>
Sun, 12 Jul 2015 19:02:43 +0000 (15:02 -0400)
src/common/compat.c

index 69c47052c8ae16b8eff58854073539690fc21d28..a32a1af1d686ce18c1df27467410769d4ddee9f8 100644 (file)
 #include <conio.h>
 #include <wchar.h>
 /* Some mingw headers lack these. :p */
-#ifndef HAVE_DECL__GETWCH
+#if defined(HAVE_DECL__GETWCH) && !HAVE_DECL__GETWCH
 wint_t _getwch(void);
 #endif
 #ifndef WEOF
 #define WEOF (wchar_t)(0xFFFF)
 #endif
-#ifndef HAVE_DECL_SECUREZEROMEMORY
+#if defined(HAVE_DECL_SECUREZEROMEMORY) && !HAVE_DECL_SECUREZEROMEMORY
 PVOID SecureZeroMemory(PVOID ptr, SIZE_T cnt);
 #endif
 #elif defined(HAVE_READPASSPHRASE_H)