Browse Source

Merge pull request #52 from yangfasheng/master

update blit.h 头文件包含支持 CPP
yangfasheng 7 years ago
parent
commit
656d3e73a9
1 changed files with 8 additions and 0 deletions
  1. 8 0
      include/rtgui/blit.h

+ 8 - 0
include/rtgui/blit.h

@@ -49,6 +49,10 @@
 #include <rtgui/rtgui.h>
 #include <rtgui/dc.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /* Assemble R-G-B values into a specified pixel format and store them */
 #define RGB565_FROM_RGB(Pixel, r, g, b)                                 \
 {                                                                       \
@@ -243,5 +247,9 @@ rtgui_blit_line_func rtgui_blit_line_get_inv(int dst_bpp, int src_bpp);
 void rtgui_blit(struct rtgui_blit_info * info);
 void rtgui_image_info_blit(struct rtgui_image_info* image, struct rtgui_dc* dc, struct rtgui_rect *dc_rect);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif