From cacd8f9f54cbe19206e8aa82330a7320a791cbfd Mon Sep 17 00:00:00 2001 From: Jason Stallings Date: Wed, 4 Feb 2015 09:52:47 -0600 Subject: [PATCH] Updated to be compatible with C++. --- src/MMBitmap.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/MMBitmap.h b/src/MMBitmap.h index e71657e6..b32b9a58 100644 --- a/src/MMBitmap.h +++ b/src/MMBitmap.h @@ -12,6 +12,11 @@ #include #endif +#ifdef __cplusplus +extern "C" +{ +#endif + struct _MMBitmap { uint8_t *imageBuffer; /* Pixels stored in Quad I format; i.e., origin is in * top left. Length should be height * bytewidth. */ @@ -77,4 +82,8 @@ do { \ } \ } while (0); -#endif /* MMBITMAP_H */ +#ifdef __cplusplus +} +#endif + +#endif /* MMBITMAP_H */ \ No newline at end of file