Skip to content
Browse files

Add extern C for use in c++ progs

  • Loading branch information...
1 parent 7084fed commit d0243fd655d43090a11e89c854f8e623098a564f @nzjrs committed Nov 29, 2010
Showing with 8 additions and 0 deletions.
  1. +8 −0 pid.h
View
8 pid.h
@@ -8,6 +8,10 @@
#ifndef PID_H_
#define PID_H_
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct {
float kp;
float ki;
@@ -44,4 +48,8 @@ float pid_calculate (PID_t *pid,
float val,
float dt);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* PID_H_ */

0 comments on commit d0243fd

Please sign in to comment.
Something went wrong with that request. Please try again.