[PATCH 2/8] score: Provide struct _Thread_queue_Heads

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Jul 23 12:54:42 UTC 2015


Use a leading underscore in the structure name to allow forward
declarations in standard header files provided by Newlib and GCC.
---
 cpukit/score/include/rtems/score/threadq.h | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/cpukit/score/include/rtems/score/threadq.h b/cpukit/score/include/rtems/score/threadq.h
index 70b5ad6..7622551 100644
--- a/cpukit/score/include/rtems/score/threadq.h
+++ b/cpukit/score/include/rtems/score/threadq.h
@@ -41,7 +41,13 @@ extern "C" {
 
 typedef struct _Thread_Control Thread_Control;
 
-typedef struct {
+/**
+ * @brief Thread queue heads.
+ *
+ * Uses a leading underscore in the structure name to allow forward
+ * declarations in standard header files provided by Newlib and GCC.
+ */
+typedef struct _Thread_queue_Heads {
   /** This union contains the data structures used to manage the blocked
    *  set of tasks which varies based upon the discipline.
    */
-- 
1.8.4.5



More information about the devel mailing list