浏览代码

libobs: Export image-file to c

Wraps image-file.h in extern "C" like rest of libobs api.

Prevents unresolved external errors when using in c++.
Alex Anderson 7 年之前
父节点
当前提交
b30c843622
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      libobs/graphics/image-file.h

+ 8 - 0
libobs/graphics/image-file.h

@@ -20,6 +20,10 @@
 #include "graphics.h"
 #include "graphics.h"
 #include "libnsgif/libnsgif.h"
 #include "libnsgif/libnsgif.h"
 
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 struct gs_image_file {
 struct gs_image_file {
 	gs_texture_t *texture;
 	gs_texture_t *texture;
 	enum gs_color_format format;
 	enum gs_color_format format;
@@ -51,3 +55,7 @@ EXPORT void gs_image_file_init_texture(gs_image_file_t *image);
 EXPORT bool gs_image_file_tick(gs_image_file_t *image,
 EXPORT bool gs_image_file_tick(gs_image_file_t *image,
 		uint64_t elapsed_time_ns);
 		uint64_t elapsed_time_ns);
 EXPORT void gs_image_file_update_texture(gs_image_file_t *image);
 EXPORT void gs_image_file_update_texture(gs_image_file_t *image);
+
+#ifdef __cplusplus
+}
+#endif