1
0
Fork 0

silence some warnings, add most of sf patch #1185267 by Moe

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2883
This commit is contained in:
Sebastian Strohhäcker 2007-06-12 20:22:09 +00:00
parent 8c6d24bb61
commit 0c24e87fdc
49 changed files with 265 additions and 255 deletions

View file

@ -16,7 +16,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* $Id: dos.cpp,v 1.100 2007-04-16 12:23:23 c2woody Exp $ */
/* $Id: dos.cpp,v 1.101 2007-06-12 20:22:08 c2woody Exp $ */
#include <stdlib.h>
#include <string.h>
@ -45,11 +45,11 @@ void DOS_SetError(Bit16u code) {
#define DATA_TRANSFERS_TAKE_CYCLES 1
#ifdef DATA_TRANSFERS_TAKE_CYCLES
#include "cpu.h"
static inline void modify_cycles(Bitu value) {
static inline void modify_cycles(Bits value) {
if((4*value+5) < CPU_Cycles) CPU_Cycles -= 4*value; else CPU_Cycles = 5;
}
#else
static inline void modify_cycles(Bitu /* value */) {
static inline void modify_cycles(Bits /* value */) {
return;
}
#endif