]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Rename SLIST_ENTRY to TOR_SLIST_ENTRY to fix windows compilation
authorNick Mathewson <nickm@torproject.org>
Thu, 1 Nov 2012 21:40:27 +0000 (17:40 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 1 Nov 2012 21:40:27 +0000 (17:40 -0400)
Apparently winnt.h defines a different SLIST_ENTRY of its own.

Bug not in any version of Tor.

src/ext/tor_queue.h

index 622301d1ca8964ca895b5864bc4ae96cc7a1019f..98d6b9885866f4288a6a7db0c29eca7e8564cd07 100644 (file)
@@ -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 */                      \
 }