Yann E. MORIN | 303c922 | 2012-12-16 06:56:12 +0000 | [diff] [blame] | 1 | includes: ptrdiff_t is defined in stddef.h |
| 2 | |
| 3 | ptrdiff_t is defined in the stddef.h header, so this |
| 4 | header must be included. |
| 5 | |
| 6 | Do the #include in a common header to avoid doing it |
| 7 | all over the place. |
| 8 | |
| 9 | Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> |
| 10 | |
| 11 | --- |
| 12 | Patch not sent upstream, it's a no-longer-maintained branch. |
| 13 | To be noted, however, is that the current devel branch is |
| 14 | still missing that include. |
| 15 | |
| 16 | diff -durN cegui06-0.6.2.orig/include/CEGUIBase.h cegui06-0.6.2/include/CEGUIBase.h |
| 17 | --- cegui06-0.6.2.orig//include/CEGUIBase.h 2008-02-11 15:38:27.000000000 +0100 |
| 18 | +++ cegui06-0.6.2/include/CEGUIBase.h 2012-08-19 22:51:50.260385978 +0200 |
| 19 | @@ -34,6 +34,7 @@ |
| 20 | #define _CEGUIBase_h_ |
| 21 | |
| 22 | #include <cassert> |
| 23 | +#include <stddef.h> |
| 24 | |
| 25 | // bring in configuration options |
| 26 | #include "CEGUIConfig.h" |