diff options
author | yash1112 | 2017-07-10 17:08:48 +0530 |
---|---|---|
committer | yash1112 | 2017-07-10 17:08:48 +0530 |
commit | 49d8281d2da2f4c6bf0e62d148a8a7328d3bf970 (patch) | |
tree | 8b555b3797807de0db3849f0d91664c12d785c9b /src/c/type | |
parent | bd03b38be0918837e147e969c6bb2014900009db (diff) | |
download | scilab2c-49d8281d2da2f4c6bf0e62d148a8a7328d3bf970.tar.gz scilab2c-49d8281d2da2f4c6bf0e62d148a8a7328d3bf970.tar.bz2 scilab2c-49d8281d2da2f4c6bf0e62d148a8a7328d3bf970.zip |
Arduino toolbox error Resolved
Diffstat (limited to 'src/c/type')
-rw-r--r-- | src/c/type/doubleComplex.h | 16 | ||||
-rw-r--r-- | src/c/type/floatComplex.h | 15 | ||||
-rw-r--r-- | src/c/type/types.h | 2 |
3 files changed, 31 insertions, 2 deletions
diff --git a/src/c/type/doubleComplex.h b/src/c/type/doubleComplex.h index 4be0d7d3..15bc2684 100644 --- a/src/c/type/doubleComplex.h +++ b/src/c/type/doubleComplex.h @@ -45,6 +45,21 @@ typedef struct double_complex doubleComplex; /* ** } */ +#elif defined(ARDUINO) +/* +** Hand made Double Complex definition +** { +*/ +struct double_complex +{ + double real; + double imag; +}; + +typedef struct double_complex doubleComplex; +/* +** } +*/ #else /* ** Standard C99 Complex @@ -57,7 +72,6 @@ typedef double complex doubleComplex; ** } */ #endif - #ifdef __cplusplus extern "C" { #endif diff --git a/src/c/type/floatComplex.h b/src/c/type/floatComplex.h index fe35ca48..ba725c95 100644 --- a/src/c/type/floatComplex.h +++ b/src/c/type/floatComplex.h @@ -44,6 +44,21 @@ struct float_complex typedef struct float_complex floatComplex; /* ** } +*/
+#elif defined(ARDUINO)
+/* +** Hand made Float Complex definition +** { +*/ +struct float_complex +{ + float real; + float imag; +}; + +typedef struct float_complex floatComplex; +/* +** } */ #else /* diff --git a/src/c/type/types.h b/src/c/type/types.h index a76bf303..ee5c8992 100644 --- a/src/c/type/types.h +++ b/src/c/type/types.h @@ -4,7 +4,7 @@ /*****************************************************************************/ /* TYPE DEFINITIONS */ /*****************************************************************************/ -typedef unsigned char boolean; +/*typedef unsigned char boolean;*/ typedef unsigned char uint8; typedef unsigned short uint16; |