Ass include of iec_std_lib.h in POUS.h file.
authormjsousa
Fri, 25 Jul 2014 14:58:33 +0100
changeset 917 5344b1fc826b
parent 916 e14cb81bc310
child 918 e9bde0aa93ed
Ass include of iec_std_lib.h in POUS.h file.
stage4/generate_c/generate_c.cc
--- a/stage4/generate_c/generate_c.cc	Mon Jul 21 10:39:46 2014 +0100
+++ b/stage4/generate_c/generate_c.cc	Fri Jul 25 14:58:33 2014 +0100
@@ -2296,7 +2296,7 @@
 /* B 0 - Programming Model */
 /***************************/
     void *visit(library_c *symbol) {
-      pous_incl_s4o.print("#ifndef __POUS_H\n#define __POUS_H\n\n#include \"accessor.h\"\n\n");
+      pous_incl_s4o.print("#ifndef __POUS_H\n#define __POUS_H\n\n#include \"accessor.h\"\n#include \"iec_std_lib.h\"\n\n");
 
       for(int i = 0; i < symbol->n; i++) {
         symbol->elements[i]->accept(*this);