Explorar o código

Apply an MSVC compilation fix from Gisle Vanem

This fixes a double-define introduced in 28538069b2f1909a7600ec6d
Nick Mathewson %!s(int64=10) %!d(string=hai) anos
pai
achega
789c8d8573
Modificáronse 2 ficheiros con 4 adicións e 1 borrados
  1. 3 0
      changes/test.h_msvc
  2. 1 1
      src/test/test.h

+ 3 - 0
changes/test.h_msvc

@@ -0,0 +1,3 @@
+  o Minor bugfixes (compilation):
+    - Fix compilation of test.h with MSVC. Patch from Gisle Vanem;
+      bugfix on 0.2.5.5-alpha.

+ 1 - 1
src/test/test.h

@@ -61,7 +61,7 @@
 
 #ifdef _MSC_VER
 #define U64_PRINTF_TYPE uint64_t
-#define U64_PRINTF_TYPE int64_t
+#define I64_PRINTF_TYPE int64_t
 #else
 #define U64_PRINTF_TYPE unsigned long long
 #define I64_PRINTF_TYPE long long