From 6eee8ca27dfb920efdc865017e35f3626a850163 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 3 Mar 2008 20:14:12 -0500 Subject: [PATCH] types.h & ata.h This patch addes header guard to ata.h and move PACKED definition to types.h (to be used for other files - sent later) Signed-off-by: Nguyen Anh Quynh --- src/ata.h | 4 ++++ src/biosvar.h | 2 -- src/types.h | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ata.h b/src/ata.h index 03bbed4..ba2667c 100644 --- a/src/ata.h +++ b/src/ata.h @@ -5,6 +5,9 @@ // // This file may be distributed under the terms of the GNU GPLv3 license. +#ifndef __ATA_H +#define __ATA_H + #include "types.h" // u16 // Function definitions @@ -154,3 +157,4 @@ void ata_detect(); #define ATA_DATA_IN 0x01 #define ATA_DATA_OUT 0x02 +#endif /* __ATA_H */ diff --git a/src/biosvar.h b/src/biosvar.h index 5f362a0..eea6df6 100644 --- a/src/biosvar.h +++ b/src/biosvar.h @@ -10,8 +10,6 @@ #include "farptr.h" // SET_SEG #include "config.h" // CONFIG_* -#define PACKED __attribute__((packed)) - /**************************************************************** * Bios Data Area (BDA) diff --git a/src/types.h b/src/types.h index 2705dac..eb10a7b 100644 --- a/src/types.h +++ b/src/types.h @@ -21,4 +21,6 @@ typedef u32 size_t; #define NULL ((void *)0) +#define PACKED __attribute__((packed)) + #endif // types.h -- 2.25.1