]> www.infradead.org Git - users/borneoa/openocd-next.git/commit
helper: list: rename macro clashing with sys/queue.h
authorAntonio Borneo <borneo.antonio@gmail.com>
Tue, 31 Dec 2024 13:47:02 +0000 (14:47 +0100)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sun, 12 Jan 2025 11:09:31 +0000 (11:09 +0000)
commit26f2df80c3f9ac54fc488ed26f6320904881c0d4
treeb93f5de9e61002609f9ebcc6d3c4ca172a8e89c7
parent0ed03df6e95bc336bbece000ffbe4028f70369d8
helper: list: rename macro clashing with sys/queue.h

The macro named LIST_HEAD() clashed with a macro of same name in
the GNU libc file sys/queue.h.
This causes a warning in MacOS build due to some other system file
including sys/queue.h.

Rename LIST_HEAD() as OOCD_LIST_HEAD().

Checkpatch-ignore: MACRO_ARG_REUSE
Change-Id: Ic653edec77425a58251d64f56c9f5f6c645ba0cd
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reported-by: Andrew Shelley <ashelley@btinternet.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/8683
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-by: Andy <andrewjohnshelley@gmail.com>
contrib/list_example.c
src/helper/list.h
src/server/telnet_server.c
src/target/adi_v5_jtag.c
src/target/arm_cti.c
src/target/arm_dap.c
src/target/arm_tpiu_swo.c
src/target/openrisc/or1k.c
src/target/riscv/riscv-013.c
src/target/target.c