summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/coremsg.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-09-18 20:48:56 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-09-18 20:48:56 +0000
commit533f89f12f75e9c4ef64cd20136cf9ea0b2430ab (patch)
tree28de3701449899c13865ea50de8cc2ce4ea6eeba /cpukit/score/include/rtems/score/coremsg.h
parentuse address object to avoid direct pointer arithmetic (diff)
downloadrtems-533f89f12f75e9c4ef64cd20136cf9ea0b2430ab.tar.bz2
modified declaration of CORE_message_queue_Buffer_control to avoid use
of GNU C extension
Diffstat (limited to 'cpukit/score/include/rtems/score/coremsg.h')
-rw-r--r--cpukit/score/include/rtems/score/coremsg.h15
1 files changed, 4 insertions, 11 deletions
diff --git a/cpukit/score/include/rtems/score/coremsg.h b/cpukit/score/include/rtems/score/coremsg.h
index b51e07ef61..202078f7c4 100644
--- a/cpukit/score/include/rtems/score/coremsg.h
+++ b/cpukit/score/include/rtems/score/coremsg.h
@@ -39,21 +39,14 @@ typedef void ( *CORE_message_queue_API_mp_support_callout )(
/*
* The following defines the data types needed to manipulate
* the contents of message buffers.
- * Since msgs are variable length we just make a ptr to 1.
+ *
+ * NOTE: The buffer field is normally longer than a single unsigned32.
+ * but since messages are variable length we just make a ptr to 1.
*/
typedef struct {
unsigned32 size;
-
-#ifndef __cplusplus
- /* NOTE: [0] is gcc specific,
- * but specifically disallowed by ANSI STD C++
- * g++ warns about it, so we #ifdef it out to
- * get rid of warnings when compiled by g++.
- */
- unsigned32 buffer[0];
-#endif
-
+ unsigned32 buffer[1];
} CORE_message_queue_Buffer;
/*