metametaclass / stm32flash

Automatically exported from code.google.com/p/stm32flash
0 stars 1 forks source link

i2c code doesn't compile on Mac #58

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
try to "make" on mac system, get error:

cc -Wall -g   -c -o i2c.o i2c.c
i2c.c:52:10: fatal error: 'linux/i2c-dev.h' file not found
#include <linux/i2c-dev.h>
         ^
1 error generated.

i2c.c needs:

-#if defined(__WIN32__) || defined(__CYGWIN__)
+#if defined(__WIN32__) || defined(__CYGWIN__) || defined(__APPLE__)

Original issue reported on code.google.com by wes...@gmail.com on 13 Sep 2014 at 7:29

GoogleCodeExporter commented 9 years ago
Thanks for the report and fix! Pushed to master.

Original comment by lists.to...@gmail.com on 13 Sep 2014 at 8:14

GoogleCodeExporter commented 9 years ago

Original comment by lists.to...@gmail.com on 13 Sep 2014 at 8:15