From cbc57c57ec0ecd3c92bc42555499a164c01a6e3e Mon Sep 17 00:00:00 2001 From: bruce Date: Mon, 9 Dec 2013 22:57:30 +0800 Subject: [PATCH] Attempt to resolve build issues reported by nrezmerski under Xcode. --- Source/adlib.h | 1 + Source/dbopl.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/adlib.h b/Source/adlib.h index 1672128..04b17c1 100644 --- a/Source/adlib.h +++ b/Source/adlib.h @@ -28,6 +28,7 @@ #include "pic.h" #include "hardware.h" +#include namespace Adlib { diff --git a/Source/dbopl.cpp b/Source/dbopl.cpp index e8e501d..a35e054 100644 --- a/Source/dbopl.cpp +++ b/Source/dbopl.cpp @@ -1440,7 +1440,7 @@ void InitTables( void ) { //Add back the bits for highest ones if ( i >= 16 ) index += 9; - Bitu blah = reinterpret_cast( &(chip->chan[ index ]) ); + Bit64u blah = reinterpret_cast( &(chip->chan[ index ]) ); ChanOffsetTable[i] = blah; } //Same for operators @@ -1455,7 +1455,7 @@ void InitTables( void ) { chNum += 16 - 12; Bitu opNum = ( i % 8 ) / 3; DBOPL::Channel* chan = 0; - Bitu blah = reinterpret_cast( &(chan->op[opNum]) ); + Bit64u blah = reinterpret_cast( &(chan->op[opNum]) ); OpOffsetTable[i] = ChanOffsetTable[ chNum ] + blah; } #if 0