aboutsummaryrefslogtreecommitdiff
path: root/morse.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 /morse.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 'morse.c')
-rw-r--r--morse.c12
1 files changed, 11 insertions, 1 deletions
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 <io.h>
#endif
+
#include "m_pd.h"
#include <stdlib.h>
-#include<time.h>
+#include <time.h>
+#include <string.h>
#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] ));