X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=src%2Fdos%2Ftimer.c;fp=src%2Fdos%2Ftimer.c;h=2440bd581130294c134c1545bf96d99c11986bdb;hp=d6c3b520cf600c2cd0caf795ae50b9ecbbacdb46;hb=93f68e445b0a4f10f2b15383aafed8a216a4a228;hpb=1329933c9afad7e3d0a7ce1f9839910706672f00 diff --git a/src/dos/timer.c b/src/dos/timer.c index d6c3b52..2440bd5 100644 --- a/src/dos/timer.c +++ b/src/dos/timer.c @@ -1,3 +1,8 @@ +/* for sound we use MIDAS, which takes over the PIT and we can't use it + * therefore only compile this file for NO_SOUND builds. + */ +#ifdef NO_SOUND + #include #include #include @@ -174,3 +179,5 @@ static void INTERRUPT timer_irq() /* send EOI to the PIC */ outp(PIC1_CMD, OCW2_EOI); } + +#endif /* NO_SOUND */