From 90dcfc18b533454d99f1d02ee7f191c63e5ed728 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 8 Apr 2004 02:35:21 +0000 Subject: made all of the objects compile on MacOS X and GNU/Linux svn path=/trunk/externals/mjlib/; revision=1571 --- n2m.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'n2m.c') diff --git a/n2m.c b/n2m.c index bd0f0ee..87c0b74 100644 --- a/n2m.c +++ b/n2m.c @@ -120,11 +120,21 @@ static int midilookup( char* note , int octave ) int nnum = 4; for( i = 0 ; i < 12 ; i++ ) { +#ifdef NT +/* stricmp() is not an ANSI or ISO standard C function */ if ( stricmp( note , notes_up[i]) == 0) { nnum = i; break; } +#else +/* replacing with a ANSI function, but it'll now be case sensitive */ + if ( strcmp( note , notes_up[i]) == 0) + { + nnum = i; + break; + } +#endif } return octaveoffset[octave + 1 ] + nnum; } -- cgit v1.2.1