summaryrefslogtreecommitdiff
path: root/src/c/type
diff options
context:
space:
mode:
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;