Fix bug pointed structure not declared for directly derived datatypes
authorlaurent
Tue, 21 Feb 2012 22:28:57 +0100
changeset 404 ff3313e22883
parent 403 b6568471de90
child 405 7b5d67d1aeef
Fix bug pointed structure not declared for directly derived datatypes
lib/iec_types_all.h
--- a/lib/iec_types_all.h	Thu Feb 16 13:27:04 2012 +0100
+++ b/lib/iec_types_all.h	Tue Feb 21 22:28:57 2012 +0100
@@ -86,7 +86,8 @@
 
 #define __DECLARE_DERIVED_TYPE(type, base)\
 typedef base type;\
-typedef __IEC_##base##_t __IEC_##type##_t;
+typedef __IEC_##base##_t __IEC_##type##_t;\
+typedef __IEC_##base##_p __IEC_##type##_p;
 
 #define __DECLARE_COMPLEX_STRUCT(type)\
 typedef struct {\