1
0
Fork 0

fix compilation with gcc 3.4

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2142
This commit is contained in:
Peter Veenstra 2005-03-24 21:41:26 +00:00
parent ebd0dc79d9
commit b2b5bfeb7e
2 changed files with 26 additions and 26 deletions

View file

@ -104,16 +104,16 @@ INLINE void host_writed(HostPt off,Bit32u val) {
#endif
INLINE void var_write(Bit8u & var, Bit8u val) {
host_writeb((HostPt)&var, val);
INLINE void var_write(Bit8u * var, Bit8u val) {
host_writeb((HostPt)var, val);
}
INLINE void var_write(Bit16u & var, Bit16u val) {
host_writew((HostPt)&var, val);
INLINE void var_write(Bit16u * var, Bit16u val) {
host_writew((HostPt)var, val);
}
INLINE void var_write(Bit32u & var, Bit32u val) {
host_writed((HostPt)&var, val);
INLINE void var_write(Bit32u * var, Bit32u val) {
host_writed((HostPt)var, val);
}
/* The Folowing six functions are slower but they recognize the paged memory system */