aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOskari Timperi <oskari.timperi@iki.fi>2017-02-16 20:25:50 +0200
committerOskari Timperi <oskari.timperi@iki.fi>2017-02-16 20:25:50 +0200
commit217721f0f5bcd2c88fb00e7347e77e8f81a7400e (patch)
tree6448b3dbeef59722087dbe9c27e7d59097b7f2b9
parent8302ceb6c3675ae538a272542182a64649163690 (diff)
downloadmqtt-217721f0f5bcd2c88fb00e7347e77e8f81a7400e.tar.gz
mqtt-217721f0f5bcd2c88fb00e7347e77e8f81a7400e.zip
Make queue.h work on MSVC
Surround currently unnecessary parts with `#if 0 ... #endif`. The offending part was the __launder_type() function with inline assembly in unsupported GCC style.
-rw-r--r--src/queue.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/queue.h b/src/queue.h
index dddb466..32d6d5b 100644
--- a/src/queue.h
+++ b/src/queue.h
@@ -100,6 +100,7 @@
# endif
#endif
+#if 0
/*
* Singly-linked List definitions.
*/
@@ -293,6 +294,7 @@ struct { \
*(elm2)->field.le_prev = (elm2); \
QUEUEDEBUG_LIST_POSTREMOVE((elm), field) \
} while (/*CONSTCOND*/0)
+#endif /* 0 */
/*
* Simple queue definitions.
@@ -562,6 +564,7 @@ struct { \
} \
} while (/*CONSTCOND*/0)
+#if 0
/*
* Singly-linked Tail queue declarations.
*/
@@ -843,4 +846,6 @@ struct { \
: (elm->field.cqe_prev))
#endif /* !_KERNEL */
+#endif /* 0 */
+
#endif /* !_SYS_QUEUE_H_ */