Make "sys/queue.h" usable with C++

Poul-Henning Kamp phk at phk.freebsd.dk
Thu Jan 16 14:18:32 UTC 2014


In message <52D7E674.4010501 at bitfrost.no>, Hans Petter Selasky writes:

>Or make one macro for each list type?
>
>#ifndef TAILQ_STRUCT
>#define TAILQ_STRUCT struct
>#endif
>
>#ifndef LIST_STRUCT
>#define LIST_STRUCT struct
>#endif
>
>and so on?

lets not overthink this :-)


-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


More information about the freebsd-hackers mailing list