소스 검색

fix compile on windows

Roger Dingledine 16 년 전
부모
커밋
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