Skip to content

Commit

Permalink
libcroc: add missing __cplusplus checks
Browse files Browse the repository at this point in the history
  • Loading branch information
vs49688 committed Feb 1, 2021
1 parent 35ab0b5 commit 0091dc8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
10 changes: 9 additions & 1 deletion libcroc/include/libcroc/chunk.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,16 @@
#include <stdio.h>
#include "chunkdef.h"

#ifdef __cplusplus
extern "C" {
#endif

typedef int (*CrocChunkEnumerator)(CrocChunkType type, const uint8_t *buf, size_t data, void *user);

int croc_chunk_enumerate(FILE *f, CrocChunkEnumerator proc, void *user);

#endif /* _LIBCROC_CHUNK_H */
#ifdef __cplusplus
}
#endif

#endif /* _LIBCROC_CHUNK_H */
8 changes: 8 additions & 0 deletions libcroc/include/libcroc/tex.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
#include "coldef.h"
#include "texdef.h"

#ifdef __cplusplus
extern "C" {
#endif

CrocTexture *croc_texture_allocate(uint16_t width, uint16_t height, CrocTextureFormat format);
void croc_texture_free(CrocTexture *texture);
int croc_texture_read_many(FILE *f, CrocTexture **textures, size_t *num);
Expand All @@ -48,4 +52,8 @@ int croc_texture_xrgb1555_to_rgb565(CrocTexture *tex);
*/
CrocTexture *croc_texture_deindex8(const CrocTexture *tex, const CrocColour *key);

#ifdef __cplusplus
}
#endif

#endif /* _LIBCROC_TEX_H */

0 comments on commit 0091dc8

Please sign in to comment.