From 217721f0f5bcd2c88fb00e7347e77e8f81a7400e Mon Sep 17 00:00:00 2001 From: Oskari Timperi Date: Thu, 16 Feb 2017 20:25:50 +0200 Subject: 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. --- src/queue.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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_ */ -- cgit v1.2.3