Skip to content

Commit d0d3a36

Browse files
committed
Added an #error if a C compiler is used. jrowberg#236
1 parent 3492d9f commit d0d3a36

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

RaspberryPi_bcm2835/I2Cdev/I2Cdev.h

+4
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ THE SOFTWARE.
3030
#ifndef _I2CDEV_H_
3131
#define _I2CDEV_H_
3232

33+
#ifndef __cplusplus
34+
#error A C++ compiler is required!
35+
#endif
36+
3337
#include <bcm2835.h>
3438
#include <math.h> // required for BMP180
3539
#include <stdlib.h> // required for MPU6060

0 commit comments

Comments
 (0)