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 --- morse.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'morse.c') diff --git a/morse.c b/morse.c index 2fa9c68..6c2eccf 100644 --- a/morse.c +++ b/morse.c @@ -2,9 +2,11 @@ #include "stdafx.h" #include #endif + #include "m_pd.h" #include -#include +#include +#include #include "morse.h" /** @@ -210,7 +212,15 @@ static void morse_message( t_morse *x, t_symbol *s, int ac, t_atom *av ) { atom_string( &av[i] , buf, 255 ); l = strlen( buf ); +#ifdef NT +/* this is not part of ANSI or ISO standard C, + only Microsoft and Borland use it. */ strlwr( buf ); +#else +/* Probably needs a loop using tolower(char c) from ctype.h + * This way it'll just be case sensitive + */ +#endif for( j = 0 ; j < l ; j++ ) { morse_add_msg_part( x , morse_lookup( buf[j] )); -- cgit v1.2.1