diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2009-01-19 15:33:49 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2009-01-19 15:33:49 -0500 |
commit | a9e286d47ff1872b2d992b246f4bb8d2d2d8f498 (patch) | |
tree | 8ea5ea0e59b58ca0ffefdccb0c751f569a8633bc /src | |
parent | faab1b302a996b41f39dd4457e20542bc5e946b6 (diff) | |
download | seabios-hppa-a9e286d47ff1872b2d992b246f4bb8d2d2d8f498.zip seabios-hppa-a9e286d47ff1872b2d992b246f4bb8d2d2d8f498.tar.gz seabios-hppa-a9e286d47ff1872b2d992b246f4bb8d2d2d8f498.tar.bz2 |
Minor - streamline SET_GLOBAL macro - reduce #if usage.
Diffstat (limited to 'src')
-rw-r--r-- | src/biosvar.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/biosvar.h b/src/biosvar.h index 5dc113f..2391759 100644 --- a/src/biosvar.h +++ b/src/biosvar.h @@ -260,16 +260,12 @@ get_ebda_ptr() #define GET_GLOBAL(var) \ GET_VAR(CS, (var)) -#if MODE16 -extern void __force_link_error__set_global_only_in_32bit(); -#define SET_GLOBAL(var, val) do { \ - (void)(val); \ - __force_link_error__set_global_only_in_32bit(); \ +#define SET_GLOBAL(var, val) do { \ + extern void __force_link_error__set_global_only_in_32bit(); \ + if (MODE16) \ + __force_link_error__set_global_only_in_32bit(); \ + (var) = (val); \ } while (0) -#else -#define SET_GLOBAL(var, val) \ - do { (var) = (val); } while (0) -#endif /**************************************************************** |