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; #include #include #define crypto_box_MACBYTES (crypto_box_ZEROBYTES - crypto_box_BOXZEROBYTES) +#endif + +#ifndef crypto_secretbox_MACBYTES #define crypto_secretbox_MACBYTES (crypto_secretbox_ZEROBYTES - crypto_secretbox_BOXZEROBYTES) #endif