ソースを参照

Attempt yet again to make the tor-ci-windows builder happy

Nick Mathewson 8 年 前
コミット
ad0d181854
1 ファイル変更6 行追加4 行削除
  1. 6 4
      src/common/compat.c

+ 6 - 4
src/common/compat.c

@@ -68,12 +68,14 @@
 #ifdef HAVE_CRT_EXTERNS_H
 #include <crt_externs.h>
 #endif
-#ifdef HAVE_READPASSPHRASE_H
+
+#ifdef _WIN32
+#include <conio.h>
+#include <wchar.h>
+#elif defined(HAVE_READPASSPHRASE_H)
 #include <readpassphrase.h>
-#elif !defined(_WIN32)
-#include "tor_readpassphrase.h"
 #else
-#include <conio.h>
+#include "tor_readpassphrase.h"
 #endif
 
 #ifndef HAVE_GETTIMEOFDAY