Bläddra i källkod

gblink: Add c++ handling in header

Signed-off-by: Kris Bahnsen <Kris@KBEmbedded.com>
Kris Bahnsen 1 år sedan
förälder
incheckning
01195d6bb7
1 ändrade filer med 8 tillägg och 0 borttagningar
  1. 8 0
      gblink.h

+ 8 - 0
gblink.h

@@ -10,6 +10,10 @@
 #include <furi_hal.h>
 #include <stdint.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 typedef enum {
 	/* Flipper drives the clock line */
 	/* Unsupported at this time */
@@ -75,4 +79,8 @@ void *gblink_alloc(struct gblink_def *gblink_def);
 
 void gblink_free(void *handle);
 
+#ifdef __cplusplus
+{
+#endif
+
 #endif // __GBLINK_H__