Fix sq/min/max macros after platform headers

This commit is contained in:
Scott Lahteine 2017-11-19 14:01:05 -06:00
parent fe4f009fdd
commit 8836623e0f
2 changed files with 10 additions and 1 deletions

View File

@ -35,6 +35,10 @@
#include <stdint.h>
#include <stdarg.h>
#undef min
#undef max
#include <algorithm>
void _printf (const char *format, ...);
@ -52,7 +56,8 @@ extern "C" volatile uint32_t _millis;
#define B01 1
#define B10 2
#include "arduino.h"
#include "include/arduino.h"
#include "pinmapping.h"
#include "fastio.h"
#include "watchdog.h"

View File

@ -32,6 +32,10 @@
#include <Arduino.h>
// Redefine sq macro defined by teensy3/wiring.h
#undef sq
#define sq(x) ((x)*(x))
#include "fastio_Teensy.h"
#include "watchdog_Teensy.h"