summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2014-09-14 13:08:01 -0400
committerirungentoo <irungentoo@gmail.com>2014-09-14 13:08:01 -0400
commit5a2a756671202a6d462913ce8ca2b3882679bbde (patch)
tree15e129b7260fde30a72c110aef83da15dd4defd7
parent331efce602661e002c33199baa75ee767bbd802f (diff)
Fixed toxencryptsave include issue.
-rw-r--r--toxencryptsave/toxencryptsave.c1
-rw-r--r--toxencryptsave/toxencryptsave.h10
2 files changed, 9 insertions, 2 deletions
diff --git a/toxencryptsave/toxencryptsave.c b/toxencryptsave/toxencryptsave.c
index 9ae66097..070f0184 100644
--- a/toxencryptsave/toxencryptsave.c
+++ b/toxencryptsave/toxencryptsave.c
@@ -27,6 +27,7 @@
27 27
28#include "toxencryptsave.h" 28#include "toxencryptsave.h"
29#include "../toxcore/crypto_core.h" 29#include "../toxcore/crypto_core.h"
30#include "../toxcore/tox.h"
30 31
31#ifdef VANILLA_NACL 32#ifdef VANILLA_NACL
32#include "crypto_pwhash_scryptsalsa208sha256/crypto_pwhash_scryptsalsa208sha256.h" 33#include "crypto_pwhash_scryptsalsa208sha256/crypto_pwhash_scryptsalsa208sha256.h"
diff --git a/toxencryptsave/toxencryptsave.h b/toxencryptsave/toxencryptsave.h
index 64617b27..75094a2b 100644
--- a/toxencryptsave/toxencryptsave.h
+++ b/toxencryptsave/toxencryptsave.h
@@ -24,12 +24,18 @@
24#ifndef TOXENCRYPTSAVE_H 24#ifndef TOXENCRYPTSAVE_H
25#define TOXENCRYPTSAVE_H 25#define TOXENCRYPTSAVE_H
26 26
27#include "../toxcore/tox.h"
28
29#ifdef __cplusplus 27#ifdef __cplusplus
30extern "C" { 28extern "C" {
31#endif 29#endif
32 30
31#include <stdint.h>
32
33#ifndef __TOX_DEFINED__
34#define __TOX_DEFINED__
35typedef struct Tox Tox;
36#endif
37
38
33/* This "module" provides functions analogous to tox_load and tox_save in toxcore 39/* This "module" provides functions analogous to tox_load and tox_save in toxcore
34 * Clients should consider alerting their users that, unlike plain data, if even one bit 40 * Clients should consider alerting their users that, unlike plain data, if even one bit
35 * becomes corrupted, the data will be entirely unrecoverable. 41 * becomes corrupted, the data will be entirely unrecoverable.