Skip to content

Commit

Permalink
Fixes compilation errors following the last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
epsilonrt committed Nov 30, 2018
1 parent 03b1ccb commit d07b602
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions include/piduino/arduino/Arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,20 @@

#ifndef __DOXYGEN__

#ifdef __cplusplus
extern "C"{
#endif

#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>

/* types ==================================================================== */
typedef unsigned int word;
typedef uint8_t boolean;
typedef uint8_t byte;

#ifdef __cplusplus
extern "C"{
#endif

/* constants ================================================================ */
#define PI 3.1415926535897932384626433832795
#define HALF_PI 1.5707963267948966192313216916398
Expand Down Expand Up @@ -79,10 +84,6 @@ extern "C"{

#ifdef __cplusplus
// -----------------------------------------------------------------------------
#include <cstdint>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <iostream>
#include <algorithm>
#include <piduino/gpio.h>
Expand Down Expand Up @@ -126,10 +127,6 @@ long map(long, long, long, long, long);
#else /* __cplusplus not defined */
// -----------------------------------------------------------------------------
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <stdio.h>

#define EXTERN_C
Expand Down

0 comments on commit d07b602

Please sign in to comment.