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 <mikedld@mikedld.com>
This commit is contained in:
Mike Gelfand 2025-06-23 22:42:18 +01:00
parent 3f0bd17d1d
commit 72197b80b0
No known key found for this signature in database
GPG Key ID: CC4DBBE3299B16F8

View File

@ -21,6 +21,9 @@
* DEALINGS IN THE SOFTWARE.
*/
#ifndef PROTOCOL_COMMON_H
#define PROTOCOL_COMMON_H
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#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) \
{ \