chiark
/
gitweb
/
~ianmdlvl
/
wiringPi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added C++ wrappers for some of the newer .h files
[wiringPi.git]
/
wiringPi
/
piNes.h
diff --git
a/wiringPi/piNes.h
b/wiringPi/piNes.h
index b76c415110029df9eb1a0b3323f0481ab62ab44b..897f1815915e83b7572a0ae61f29b1cad51bf76b 100644
(file)
--- a/
wiringPi/piNes.h
+++ b/
wiringPi/piNes.h
@@
-33,5
+33,13
@@
#define NES_B 0x40
#define NES_A 0x80
+#ifdef __cplusplus
+extern "C" {
+#endif
+
extern int setupNesJoystick (int dPin, int cPin, int lPin) ;
extern unsigned int readNesJoystick (int joystick) ;
+
+#ifdef __cplusplus
+}
+#endif