]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lib.git/commitdiff
Make types.h compilable by newer TI compilers
authorMartin Vajnar <martin.vajnar@gmail.com>
Wed, 23 Sep 2015 08:00:10 +0000 (10:00 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 5 Nov 2015 13:33:20 +0000 (14:33 +0100)
Currently used TI compiler version includes integer types definitions.

rpp/include/types.h

index ab784abe98141ab99951398f9fed323fbcac8e7a..eb63baa15399f5846bcc9d4cc4979ec40cffae52 100644 (file)
 #define RPP_ENODEV  6           /**< Specified device does not exist */
 
 // Note: Sadly <stdint.h> is not available with CCS tools.
-#ifdef __GNUC__
+#if defined(__GNUC__) || __TI_COMPILER_VERSION__ >= 5001013
 
 #include <stdint.h>
+#include <stddef.h>
 #include <stdbool.h>
 typedef bool boolean_t;