aboutsummaryrefslogtreecommitdiff
path: root/src/farptr.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2008-02-27 10:41:41 -0500
committerKevin O'Connor <kevin@koconnor.net>2008-02-27 10:41:41 -0500
commit786502d7838fb7ae0488bd0302415c842f791afb (patch)
tree2ccb1656bfcb880d9cff8c993d9b47c4adcd21db /src/farptr.h
parenta2e7380fdfd466c275f61ea1745ed8a5ec4a90f8 (diff)
downloadseabios-hppa-786502d7838fb7ae0488bd0302415c842f791afb.zip
seabios-hppa-786502d7838fb7ae0488bd0302415c842f791afb.tar.gz
seabios-hppa-786502d7838fb7ae0488bd0302415c842f791afb.tar.bz2
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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/farptr.h b/src/farptr.h
index 86179cc..7216f23 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