Fix sq
/min
/max
macros after platform headers
This commit is contained in:
parent
fe4f009fdd
commit
8836623e0f
2 changed files with 10 additions and 1 deletions
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
Reference in a new issue