Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 80405e1

Browse files
committed
[[ LibGraphics ]] Added extern "C" to MCGContextCreate to help testing.
1 parent dc29859 commit 80405e1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libgraphics/include/graphics.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ bool MCGPathIterate(MCGPathRef p_path, MCGPathIterateCallback p_callback, void *
775775

776776
////////////////////////////////////////////////////////////////////////////////
777777

778-
bool MCGContextCreate(uint32_t width, uint32_t height, bool alpha, MCGContextRef& r_context);
778+
extern "C" bool MCGContextCreate(uint32_t width, uint32_t height, bool alpha, MCGContextRef& r_context);
779779
bool MCGContextCreateWithPixels(uint32_t width, uint32_t height, uint32_t stride, void *pixels, bool alpha, MCGContextRef& r_context);
780780
bool MCGContextCreateWithRaster(const MCGRaster& raster, MCGContextRef& r_context);
781781

0 commit comments

Comments
 (0)