From 72197b80b0f7fb3a2a02fa997ce32b4e927df30b Mon Sep 17 00:00:00 2001 From: Mike Gelfand Date: Mon, 23 Jun 2025 22:42:18 +0100 Subject: [PATCH] test: move include guards up to wrap the whole file See: https://gcc.gnu.org/onlinedocs/cppinternals/Guard-Macros.html Signed-off-by: Mike Gelfand --- test/xi2/protocol-common.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/xi2/protocol-common.h b/test/xi2/protocol-common.h index 88c0bc864..51b3473dc 100644 --- a/test/xi2/protocol-common.h +++ b/test/xi2/protocol-common.h @@ -21,6 +21,9 @@ * DEALINGS IN THE SOFTWARE. */ +#ifndef PROTOCOL_COMMON_H +#define PROTOCOL_COMMON_H + #ifdef HAVE_DIX_CONFIG_H #include #endif @@ -34,9 +37,6 @@ #include "tests.h" -#ifndef PROTOCOL_COMMON_H -#define PROTOCOL_COMMON_H - /* Check default values in a reply */ #define reply_check_defaults(rep, len, type) \ { \