浏览代码

fix compile on windows

Roger Dingledine 15 年之前
父节点
当前提交
9d6c79cbbb
共有 1 个文件被更改,包括 4 次插入0 次删除
  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