puuu / USIWire

USI based TWI/I2C library for Arduino
GNU Lesser General Public License v3.0
58 stars 18 forks source link

add include stddef.h #9

Closed travishein closed 6 years ago

travishein commented 6 years ago

I found when I use USIWire from an Arduino Library ( a .cpp file, not the main sketch file, like a .ino file), then compiling that library, I get USIWire.h:58:5: error: 'size_t' does not name a type size_t write(uint8_t).

So it looks like just including the "stddef.h" here in the USIWire.h header fixes this.

I use Arduino IDE 1.8.1 on MacOS.

puuu commented 6 years ago

Good catch! Thanks!

Merged in 00f1ca73a3e832fcbc9fbd7c5ff45337442e5319