Explorar o código

fix compile on windows

Roger Dingledine %!s(int64=16) %!d(string=hai) anos
pai
achega
9d6c79cbbb
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      src/or/circuitbuild.c

+ 4 - 0
src/or/circuitbuild.c

@@ -14,6 +14,10 @@
 #include "or.h"
 #include "crypto.h"
 
+#ifndef MIN
+#define MIN(a,b) ((a)<(b)?(a):(b))
+#endif
+
 /*
  * This madness is needed because if we simply #undef log
  * before including or.h or log.h, we get linker collisions