Skip to content

Commit cacd8f9

Browse files
committed
Updated to be compatible with C++.
1 parent ecdd16a commit cacd8f9

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/MMBitmap.h

+10-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
#include <stdint.h>
1313
#endif
1414

15+
#ifdef __cplusplus
16+
extern "C"
17+
{
18+
#endif
19+
1520
struct _MMBitmap {
1621
uint8_t *imageBuffer; /* Pixels stored in Quad I format; i.e., origin is in
1722
* top left. Length should be height * bytewidth. */
@@ -77,4 +82,8 @@ do { \
7782
} \
7883
} while (0);
7984

80-
#endif /* MMBITMAP_H */
85+
#ifdef __cplusplus
86+
}
87+
#endif
88+
89+
#endif /* MMBITMAP_H */

0 commit comments

Comments
 (0)