lib/iec_types.h
changeset 161 a27957e13d42
parent 137 9ceda59abd27
child 163 61f65dd6eeb9
--- a/lib/iec_types.h	Fri Dec 19 15:09:29 2008 +0100
+++ b/lib/iec_types.h	Tue Dec 23 13:21:19 2008 +0100
@@ -47,8 +47,15 @@
 typedef struct timespec IEC_DT;
 typedef struct timespec IEC_TOD;
 
+#ifndef STR_MAX_LEN
 #define STR_MAX_LEN 40
-typedef int8_t __strlen_t;
+#endif
+
+#ifndef STR_LEN_TYPE
+#define STR_LEN_TYPE uint8_t
+#endif
+
+typedef STR_LEN_TYPE __strlen_t;
 typedef struct {
     __strlen_t len;
     uint8_t body[STR_MAX_LEN];