From 35fe4fadeb3bf0404b8235ca22cb32276c9a27c2 Mon Sep 17 00:00:00 2001 From: mbanth Date: Fri, 7 May 2021 16:46:37 +0100 Subject: [PATCH] Remove header guards. Since these files only include initialisation lists, no guard is needed. For UAC1 operation, one file has to be included twice, so including a guard breaks the implementation. --- lib_xua/src/hid/xua_hid_descriptor_contents.h | 5 ----- lib_xua/src/hid/xua_hid_endpoint_descriptor_contents.h | 5 ----- lib_xua/src/hid/xua_hid_interface_descriptor_contents.h | 5 ----- 3 files changed, 15 deletions(-) diff --git a/lib_xua/src/hid/xua_hid_descriptor_contents.h b/lib_xua/src/hid/xua_hid_descriptor_contents.h index 283a6d6b..31933979 100644 --- a/lib_xua/src/hid/xua_hid_descriptor_contents.h +++ b/lib_xua/src/hid/xua_hid_descriptor_contents.h @@ -7,9 +7,6 @@ * This file lists the contents of the HID Endpoint descriptor returned during enumeration. */ -#ifndef _HID_DESCRIPTOR_CONTENTS_ -#define _HID_DESCRIPTOR_CONTENTS_ - #if (AUDIO_CLASS == 1) /* HID descriptor */ @@ -48,5 +45,3 @@ #else #error "Unknown Audio Class" #endif - -#endif // _HID_DESCRIPTOR_CONTENTS_ diff --git a/lib_xua/src/hid/xua_hid_endpoint_descriptor_contents.h b/lib_xua/src/hid/xua_hid_endpoint_descriptor_contents.h index 105e037e..3fcef71e 100644 --- a/lib_xua/src/hid/xua_hid_endpoint_descriptor_contents.h +++ b/lib_xua/src/hid/xua_hid_endpoint_descriptor_contents.h @@ -7,9 +7,6 @@ * This file lists the contents of the HID Endpoint descriptor returned during enumeration. */ -#ifndef _HID_ENDPOINT_DESCRIPTOR_CONTENTS_ -#define _HID_ENDPOINT_DESCRIPTOR_CONTENTS_ - #include "descriptor_defs.h" #if (AUDIO_CLASS == 1) @@ -39,5 +36,3 @@ #else #error "Unknown Audio Class" #endif - -#endif // _HID_ENDPOINT_DESCRIPTOR_CONTENTS_ diff --git a/lib_xua/src/hid/xua_hid_interface_descriptor_contents.h b/lib_xua/src/hid/xua_hid_interface_descriptor_contents.h index 3d0d62a9..fd0c0235 100644 --- a/lib_xua/src/hid/xua_hid_interface_descriptor_contents.h +++ b/lib_xua/src/hid/xua_hid_interface_descriptor_contents.h @@ -7,9 +7,6 @@ * This file lists the contents of the HID Interface descriptor returned during enumeration. */ -#ifndef _HID_INTERFACE_DESCRIPTOR_CONTENTS_ -#define _HID_INTERFACE_DESCRIPTOR_CONTENTS_ - #include "descriptor_defs.h" #if (AUDIO_CLASS == 1) @@ -44,5 +41,3 @@ #else #error "Unknown Audio Class" #endif - -#endif // _HID_INTERFACE_DESCRIPTOR_CONTENTS_