diff options
-rw-r--r-- | toxcore/network.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/toxcore/network.h b/toxcore/network.h index 99fc4039..c1418c4c 100644 --- a/toxcore/network.h +++ b/toxcore/network.h | |||
@@ -71,6 +71,9 @@ typedef int sock_t; | |||
71 | #include <crypto_secretbox.h> | 71 | #include <crypto_secretbox.h> |
72 | #include <randombytes.h> | 72 | #include <randombytes.h> |
73 | #define crypto_box_MACBYTES (crypto_box_ZEROBYTES - crypto_box_BOXZEROBYTES) | 73 | #define crypto_box_MACBYTES (crypto_box_ZEROBYTES - crypto_box_BOXZEROBYTES) |
74 | #endif | ||
75 | |||
76 | #ifndef crypto_secretbox_MACBYTES | ||
74 | #define crypto_secretbox_MACBYTES (crypto_secretbox_ZEROBYTES - crypto_secretbox_BOXZEROBYTES) | 77 | #define crypto_secretbox_MACBYTES (crypto_secretbox_ZEROBYTES - crypto_secretbox_BOXZEROBYTES) |
75 | #endif | 78 | #endif |
76 | 79 | ||