1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-12 01:53:07 +03:00

fix host emulation on macOS (#5633)

This commit is contained in:
david gauchard
2019-01-19 03:19:17 +01:00
committed by GitHub
parent b666435282
commit bd11d026e8
10 changed files with 48 additions and 19 deletions

View File

@ -34,6 +34,7 @@ extern "C" {
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <errno.h>
#include "binary.h"
#include "twi.h"
@ -249,11 +250,13 @@ extern "C" {
#include "Updater.h"
#include "debug.h"
#if 0
#ifndef _GLIBCXX_VECTOR
// arduino is not compatible with std::vector
#define min(a,b) ((a)<(b)?(a):(b))
#define max(a,b) ((a)>(b)?(a):(b))
#endif
#endif
#define _min(a,b) ((a)<(b)?(a):(b))
#define _max(a,b) ((a)>(b)?(a):(b))