Skip to content

Commit ba04076

Browse files
committed
Move definitions to not conflict with C includes
1 parent 6dc3407 commit ba04076

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Diff for: cores/esp32/Arduino.h

+5-6
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,11 @@ void shiftOut(uint8_t dataPin, uint8_t clockPin, uint8_t bitOrder, uint8_t val);
136136
#include "HardwareSerial.h"
137137
#include "Esp.h"
138138

139+
uint16_t makeWord(uint16_t w);
140+
uint16_t makeWord(byte h, byte l);
141+
142+
#define word(...) makeWord(__VA_ARGS__)
143+
139144
// WMath prototypes
140145
long random(long);
141146
#endif /* __cplusplus */
@@ -152,12 +157,6 @@ long map(long, long, long, long, long);
152157

153158
#define _min(a,b) ((a)<(b)?(a):(b))
154159
#define _max(a,b) ((a)>(b)?(a):(b))
155-
156-
uint16_t makeWord(uint16_t w);
157-
uint16_t makeWord(byte h, byte l);
158-
159-
#define word(...) makeWord(__VA_ARGS__)
160-
161160
#include "pins_arduino.h"
162161

163162
#endif /* _ESP32_CORE_ARDUINO_H_ */

0 commit comments

Comments
 (0)