瀏覽代碼

Rename SLIST_ENTRY to TOR_SLIST_ENTRY to fix windows compilation

Apparently winnt.h defines a different SLIST_ENTRY of its own.

Bug not in any version of Tor.
Nick Mathewson 13 年之前
父節點
當前提交
ae99fc1ccb
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/ext/tor_queue.h

+ 3 - 1
src/ext/tor_queue.h

@@ -99,7 +99,9 @@ struct name {								\
 #define	SLIST_HEAD_INITIALIZER(head)					\
 	{ NULL }
  
-#define SLIST_ENTRY(type)						\
+/* XXXX This macro name conflicts with a typedef in winnt.h, so Tor
+ * has to redefine it. */
+#define TOR_SLIST_ENTRY(type)						\
 struct {								\
 	struct type *sle_next;	/* next element */			\
 }