summaryrefslogtreecommitdiff
path: root/src/c/type
diff options
context:
space:
mode:
authoryash11122017-07-10 17:08:48 +0530
committeryash11122017-07-10 17:08:48 +0530
commit49d8281d2da2f4c6bf0e62d148a8a7328d3bf970 (patch)
tree8b555b3797807de0db3849f0d91664c12d785c9b /src/c/type
parentbd03b38be0918837e147e969c6bb2014900009db (diff)
downloadscilab2c-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.h16
-rw-r--r--src/c/type/floatComplex.h15
-rw-r--r--src/c/type/types.h2
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;