Refactor include guards for consistency across header files

This commit is contained in:
2025-10-01 02:55:03 +01:00
parent 4403cf267f
commit 641cb9824b
3 changed files with 18 additions and 18 deletions

View File

@@ -16,14 +16,14 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef LIBAARUFORMAT_AARU_H
#define LIBAARUFORMAT_AARU_H
#ifndef _MSC_VER
#pragma clang diagnostic push
#pragma ide diagnostic ignored "OCUnusedGlobalDeclarationInspection"
#endif
#ifndef LIBAARUFORMAT_AARU_H
#define LIBAARUFORMAT_AARU_H
#include <stdint.h>
// TODO: Generate automatically from C#
@@ -1173,8 +1173,8 @@ typedef enum
// NOLINTEND(readability-identifier-naming)
#endif // LIBAARUFORMAT_AARU_H
#ifndef _MSC_VER
#pragma clang diagnostic pop
#endif
#endif
#endif // LIBAARUFORMAT_AARU_H

View File

@@ -16,14 +16,14 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef LIBAARUFORMAT_CONSTS_H
#define LIBAARUFORMAT_CONSTS_H
#ifndef _MSC_VER
#pragma clang diagnostic push
#pragma ide diagnostic ignored "OCUnusedMacroInspection"
#endif
#ifndef LIBAARUFORMAT_CONSTS_H
#define LIBAARUFORMAT_CONSTS_H
/** Magic identidier = "DICMFRMT". */
#define DIC_MAGIC 0x544D52464D434944
/** Magic identidier = "AARUFRMT". */
@@ -59,8 +59,8 @@
#define CRC64_ECMA_POLY 0xC96C5795D7870F42
#define CRC64_ECMA_SEED 0xFFFFFFFFFFFFFFFF
#endif // LIBAARUFORMAT_CONSTS_H
#ifndef _MSC_VER
#pragma clang diagnostic pop
#endif
#endif
#endif // LIBAARUFORMAT_CONSTS_H

View File

@@ -16,14 +16,14 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef LIBAARUFORMAT_ENUMS_H
#define LIBAARUFORMAT_ENUMS_H
#ifndef _MSC_VER
#pragma clang diagnostic push
#pragma ide diagnostic ignored "OCUnusedGlobalDeclarationInspection"
#endif
#ifndef LIBAARUFORMAT_ENUMS_H
#define LIBAARUFORMAT_ENUMS_H
/** List of known compression types */
typedef enum
{
@@ -324,8 +324,8 @@ typedef enum
SectorStatusUnencrypted = 0xA
} SectorStatus;
#endif // LIBAARUFORMAT_ENUMS_H
#ifndef _MSC_VER
#pragma clang diagnostic pop
#endif
#endif
#endif // LIBAARUFORMAT_ENUMS_H