[PATCH] score: Include <limits.h> in basedefs.h

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Jul 19 06:52:56 UTC 2013


---
 cpukit/score/include/rtems/score/basedefs.h |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/cpukit/score/include/rtems/score/basedefs.h b/cpukit/score/include/rtems/score/basedefs.h
index ebefe14..957b424 100644
--- a/cpukit/score/include/rtems/score/basedefs.h
+++ b/cpukit/score/include/rtems/score/basedefs.h
@@ -33,6 +33,13 @@
   #include <stddef.h>
   #include <stdbool.h>
   #include <stdint.h>
+
+  /*
+   * This include should not be present.  In older RTEMS versions <rtems.h>
+   * provided <limits.h> indirectly.  This include is here to not break
+   * application source files that relied on this accidentally.
+   */
+  #include <limits.h>
 #endif
 
 #ifndef TRUE
-- 
1.7.7




More information about the devel mailing list