aboutsummaryrefslogtreecommitdiff
path: root/n2m.c
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2004-04-08 02:35:21 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2004-04-08 02:35:21 +0000
commit90dcfc18b533454d99f1d02ee7f191c63e5ed728 (patch)
tree8caf3f00bd62dbf861985a760ad41d1c6525f9c1 /n2m.c
parente58688258d35f9a677f0ba6aa9ceacde271cdeb4 (diff)
made all of the objects compile on MacOS X and GNU/Linux
svn path=/trunk/externals/mjlib/; revision=1571
Diffstat (limited to 'n2m.c')
-rw-r--r--n2m.c10
1 files changed, 10 insertions, 0 deletions
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;
}