diff --git a/gfx/video_thread_wrapper.h b/gfx/video_thread_wrapper.h
index d5bd9de543..22d7ff756d 100644
--- a/gfx/video_thread_wrapper.h
+++ b/gfx/video_thread_wrapper.h
@@ -23,6 +23,10 @@
 #include <rthreads/rthreads.h>
 #include "font_driver.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 enum thread_cmd
 {
    CMD_NONE = 0,
@@ -59,6 +63,7 @@ enum thread_cmd
    CMD_DUMMY = INT_MAX
 };
 
+
 typedef struct
 {
    enum thread_cmd type;
@@ -256,5 +261,8 @@ void *rarch_threaded_video_get_ptr(const video_driver_t **drv);
 
 const char *rarch_threaded_video_get_ident(void);
 
+#ifdef __cplusplus
+}
 #endif
 
+#endif