diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-01-28 14:59:21 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-01-28 14:59:21 +0000 |
commit | a95f177d20c45f908b62d35c0d58a4448713e628 (patch) | |
tree | d128cb857928af871f2de84a3e3ed0a425ff93d4 /nuttx/examples/ostest/mqueue.c | |
parent | d6168a07ffc8e5db221861756291d4f58fc43fe0 (diff) | |
download | px4-nuttx-a95f177d20c45f908b62d35c0d58a4448713e628.tar.gz px4-nuttx-a95f177d20c45f908b62d35c0d58a4448713e628.tar.bz2 px4-nuttx-a95f177d20c45f908b62d35c0d58a4448713e628.zip |
Z16F compile/link with all OS features enabled
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@574 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/ostest/mqueue.c')
-rw-r--r-- | nuttx/examples/ostest/mqueue.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/nuttx/examples/ostest/mqueue.c b/nuttx/examples/ostest/mqueue.c index 99cf1e585..e15d4680c 100644 --- a/nuttx/examples/ostest/mqueue.c +++ b/nuttx/examples/ostest/mqueue.c @@ -1,7 +1,7 @@ /************************************************************************** * mqueue.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -56,10 +56,14 @@ **************************************************************************/ #define TEST_MESSAGE "This is a test and only a test" -#ifdef SDCC -#define TEST_MSGLEN (31) +#if defined(SDCC) || defined(__ZILOG__) + /* Cannot use strlen in array size */ + +# define TEST_MSGLEN (31) #else -#define TEST_MSGLEN (strlen(TEST_MESSAGE)+1) + /* Message lenght is the size of the message plus the null terminator */ + +# define TEST_MSGLEN (strlen(TEST_MESSAGE)+1) #endif #define TEST_SEND_NMSGS (10) |