Generate extern "C" in the .c, not just the .h.

This commit is contained in:
Nigel Tao committed 2017-05-27 09:24:31 +10:00
1 parent 71a3ad6563
commit cc9aeb63c1
2 files changed
+21 -17

No files matched your search

+8
View File
@@ -15,6 +15,10 @@
#error "Puffs requires a word size of at least 32 bits"
#endif
#ifdef __cplusplus
extern "C" {
#endif
// ---------------- Status Codes
typedef enum {
@@ -39,6 +43,10 @@ void puffs_gif_lzw_decoder_constructor(puffs_gif_lzw_decoder* self);
void puffs_gif_lzw_decoder_destructor(puffs_gif_lzw_decoder* self);
#ifdef __cplusplus
} // extern "C"
#endif
// ---------------- Constructor and Destructor Implementations
void puffs_gif_lzw_decoder_constructor(puffs_gif_lzw_decoder* self) {