From 9d6c79cbbbd21fe685de7cb45f98636dac2f0b36 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Sun, 11 Oct 2009 17:23:47 -0400 Subject: fix compile on windows --- src/or/circuitbuild.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index fbdbb85b2f..40c3a6b87f 100644 --- a/src/or/circuitbuild.c +++ b/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 -- cgit v1.2.3-54-g00ecf