diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2008-02-27 10:41:41 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2008-02-27 10:41:41 -0500 |
commit | 786502d7838fb7ae0488bd0302415c842f791afb (patch) | |
tree | 2ccb1656bfcb880d9cff8c993d9b47c4adcd21db /src/farptr.h | |
parent | a2e7380fdfd466c275f61ea1745ed8a5ec4a90f8 (diff) | |
download | seabios-786502d7838fb7ae0488bd0302415c842f791afb.tar.gz |
Some cleanups based on patch by Nguyen Anh Quynh
Add include guards to header files.
Disable stack protector on gcc versions with that option.
Fix lds bug in src/rombios32.lds.S
Don't forward declare "struct bregs;" - it may be confusing gcc on some versions.
Diffstat (limited to 'src/farptr.h')
-rw-r--r-- | src/farptr.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/farptr.h b/src/farptr.h index 86179cce..7216f237 100644 --- a/src/farptr.h +++ b/src/farptr.h @@ -3,6 +3,8 @@ // Copyright (C) 2008 Kevin O'Connor <kevin@koconnor.net> // // This file may be distributed under the terms of the GNU GPLv3 license. +#ifndef __FARPTR_H +#define __FARPTR_H #define READ8_SEG(SEG, var) ({ \ u8 __value; \ @@ -97,3 +99,5 @@ extern void __force_link_error__unknown_type(); #define GET_FARPTR(ptr) (ptr) #define SET_FARPTR(ptr, val) do { (var) = (val); } while (0) #endif + +#endif // farptr.h |