Skip to content

Commit

Permalink
Updated to be compatible with C++.
Browse files Browse the repository at this point in the history
  • Loading branch information
octalmage committed Feb 4, 2015
1 parent ecdd16a commit cacd8f9
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/MMBitmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
#include <stdint.h>
#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. */
Expand Down Expand Up @@ -77,4 +82,8 @@ do { \
} \
} while (0);

#endif /* MMBITMAP_H */
#ifdef __cplusplus
}
#endif

#endif /* MMBITMAP_H */

0 comments on commit cacd8f9

Please sign in to comment.