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/>. * License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef LIBAARUFORMAT_AARU_H
#define LIBAARUFORMAT_AARU_H
#ifndef _MSC_VER #ifndef _MSC_VER
#pragma clang diagnostic push #pragma clang diagnostic push
#pragma ide diagnostic ignored "OCUnusedGlobalDeclarationInspection" #pragma ide diagnostic ignored "OCUnusedGlobalDeclarationInspection"
#endif #endif
#ifndef LIBAARUFORMAT_AARU_H
#define LIBAARUFORMAT_AARU_H
#include <stdint.h> #include <stdint.h>
// TODO: Generate automatically from C# // TODO: Generate automatically from C#
@@ -1173,8 +1173,8 @@ typedef enum
// NOLINTEND(readability-identifier-naming) // NOLINTEND(readability-identifier-naming)
#endif // LIBAARUFORMAT_AARU_H
#ifndef _MSC_VER #ifndef _MSC_VER
#pragma clang diagnostic pop #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/>. * License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef LIBAARUFORMAT_CONSTS_H
#define LIBAARUFORMAT_CONSTS_H
#ifndef _MSC_VER #ifndef _MSC_VER
#pragma clang diagnostic push #pragma clang diagnostic push
#pragma ide diagnostic ignored "OCUnusedMacroInspection" #pragma ide diagnostic ignored "OCUnusedMacroInspection"
#endif #endif
#ifndef LIBAARUFORMAT_CONSTS_H
#define LIBAARUFORMAT_CONSTS_H
/** Magic identidier = "DICMFRMT". */ /** Magic identidier = "DICMFRMT". */
#define DIC_MAGIC 0x544D52464D434944 #define DIC_MAGIC 0x544D52464D434944
/** Magic identidier = "AARUFRMT". */ /** Magic identidier = "AARUFRMT". */
@@ -59,8 +59,8 @@
#define CRC64_ECMA_POLY 0xC96C5795D7870F42 #define CRC64_ECMA_POLY 0xC96C5795D7870F42
#define CRC64_ECMA_SEED 0xFFFFFFFFFFFFFFFF #define CRC64_ECMA_SEED 0xFFFFFFFFFFFFFFFF
#endif // LIBAARUFORMAT_CONSTS_H
#ifndef _MSC_VER #ifndef _MSC_VER
#pragma clang diagnostic pop #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/>. * License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef LIBAARUFORMAT_ENUMS_H
#define LIBAARUFORMAT_ENUMS_H
#ifndef _MSC_VER #ifndef _MSC_VER
#pragma clang diagnostic push #pragma clang diagnostic push
#pragma ide diagnostic ignored "OCUnusedGlobalDeclarationInspection" #pragma ide diagnostic ignored "OCUnusedGlobalDeclarationInspection"
#endif #endif
#ifndef LIBAARUFORMAT_ENUMS_H
#define LIBAARUFORMAT_ENUMS_H
/** List of known compression types */ /** List of known compression types */
typedef enum typedef enum
{ {
@@ -324,8 +324,8 @@ typedef enum
SectorStatusUnencrypted = 0xA SectorStatusUnencrypted = 0xA
} SectorStatus; } SectorStatus;
#endif // LIBAARUFORMAT_ENUMS_H
#ifndef _MSC_VER #ifndef _MSC_VER
#pragma clang diagnostic pop #pragma clang diagnostic pop
#endif #endif
#endif // LIBAARUFORMAT_ENUMS_H