diff options
| author | KonAki <konaki@anokonaki.org> | 2026-10-13 10:28:17 +0800 |
|---|---|---|
| committer | KonAki <konaki@anokonaki.org> | 2026-10-13 10:28:17 +0800 |
| commit | d3432fcc288a53dff9eb219c8857ca48c5981323 (patch) | |
| tree | fba5cc730c91d2c674efe6d71dd20e9d6bf7d0d8 /kon/konpack.h | |
| parent | a2dc5ca4c659e2d0a9527cd0910bc76b65e6d09f (diff) | |
headers: extern C guards and C++ safe vector and rect constructors
Diffstat (limited to 'kon/konpack.h')
| -rw-r--r-- | kon/konpack.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kon/konpack.h b/kon/konpack.h index 3700900..4d3d23a 100644 --- a/kon/konpack.h +++ b/kon/konpack.h @@ -29,6 +29,10 @@ #include <stdint.h> #include <stddef.h> +#ifdef __cplusplus +extern "C" { +#endif + /*** definition ***/ #define KON_PACK_KEY_SIZE 32 @@ -63,4 +67,8 @@ void kon_chacha20Xor(const uint8_t key[KON_PACK_KEY_SIZE], const uint8_t nonce[1 int kon_packWrite(const char *outPath, const uint8_t *key, const char *baseDir, const char *const *files, int count); #endif + +#ifdef __cplusplus +} +#endif #endif |
