it builds on GCC again

This commit is contained in:
tildearrow 2021-05-17 19:18:59 -05:00
parent cf7aa9139c
commit ba8c6d8169
2 changed files with 3 additions and 3 deletions

View file

@ -134,7 +134,7 @@ void DivEngine::processRow(int i, bool afterDelay) {
// volume
if (pat->data[curRow][3]!=-1) {
if ((min(chan[i].volMax,chan[i].volume)>>8)!=pat->data[curRow][3]) {
if ((MIN(chan[i].volMax,chan[i].volume)>>8)!=pat->data[curRow][3]) {
chan[i].volume=pat->data[curRow][3]<<8;
dispatch->dispatch(DivCommand(DIV_CMD_VOLUME,i,chan[i].volume>>8));
}

View file

@ -6,7 +6,7 @@
typedef std::string String;
#define min(a,b) (((a)<(b))?(a):(b))
#define max(a,b) (((a)>(b))?(a):(b))
#define MIN(a,b) (((a)<(b))?(a):(b))
#define MAX(a,b) (((a)>(b))?(a):(b))
#endif