]> rtime.felk.cvut.cz Git - ert_linux.git/commitdiff
Local definition of TRUE/FALSE is required for R2014a Simulink version.
authorKvetoslav Belda <belda@utia.cas.cz>
Fri, 18 Apr 2014 11:50:08 +0000 (13:50 +0200)
committerKvetoslav Belda <belda@utia.cas.cz>
Fri, 18 Apr 2014 11:50:08 +0000 (13:50 +0200)
ert_linux/ert_linux_main.tlc

index 1b70a0d1c5e9125ebf3431c855ec55c992577f6e..7b7e966cb77ff0ed64eb1c60b11a5afbe7dcc3f1 100644 (file)
@@ -29,6 +29,7 @@
   #include <semaphore.h>                 /* Semaphores library header file */
   #include <time.h>
   #include <stdlib.h>
+  #include <stdbool.h>
   #include <unistd.h>
   #include <sys/mman.h>                  /* For mlockall() */
   #include "%<modelName>.h"              /* Model's header file */
     #include "ext_work.h"                  /* External mode header file */
   %endif
 
+  #ifndef TRUE
+  #define TRUE true
+  #define FALSE false
+  #endif
+
   /*==================*
    * Required defines *
    *==================*/