diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2004-04-08 02:35:21 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2004-04-08 02:35:21 +0000 |
commit | 90dcfc18b533454d99f1d02ee7f191c63e5ed728 (patch) | |
tree | 8caf3f00bd62dbf861985a760ad41d1c6525f9c1 /n2m.c | |
parent | e58688258d35f9a677f0ba6aa9ceacde271cdeb4 (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.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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;
}
|