aboutsummaryrefslogtreecommitdiff
path: root/src/farptr.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2008-07-13 11:08:36 -0400
committerKevin O'Connor <kevin@koconnor.net>2008-07-13 11:08:36 -0400
commit7ab798f9071abb4566e164fc25fb22d179c8f767 (patch)
treec61f4090a07f3642d227745819c6ec9e73a4ef6c /src/farptr.h
parent95cde27fed8eecf481ad1500d7181e67080c5ee2 (diff)
downloadseabios-hppa-7ab798f9071abb4566e164fc25fb22d179c8f767.zip
seabios-hppa-7ab798f9071abb4566e164fc25fb22d179c8f767.tar.gz
seabios-hppa-7ab798f9071abb4566e164fc25fb22d179c8f767.tar.bz2
Always define macro MODE16 - that way it can be used in C conditionals.
When in 32bit mode - just define it to 0.
Diffstat (limited to 'src/farptr.h')
-rw-r--r--src/farptr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/farptr.h b/src/farptr.h
index ef0aa42..d5b64f7 100644
--- a/src/farptr.h
+++ b/src/farptr.h
@@ -133,7 +133,7 @@ extern void __force_link_error__unknown_type();
#define MAKE_FARPTR(seg,off) ((void*)(((seg)<<4)+(off)))
-#ifdef MODE16
+#if MODE16 == 1
// Definitions when in 16 bit mode.
#define GET_FARVAR(seg, var) __GET_FARVAR((seg), (var))