add undef guard in tox_many_tcp_test

This fixes an redefinition error when creating amalgamation.cc during
static analysis
This commit is contained in:
sudden6 2019-05-01 14:24:46 +02:00
parent efff822aef
commit b3100c977c
No known key found for this signature in database
GPG Key ID: 279509B499E032B9

View File

@ -39,6 +39,10 @@ static void accept_friend_request(Tox *m, const uint8_t *public_key, const uint8
#define NUM_FRIENDS 50
#define NUM_TOXES_TCP 40
#ifdef TCP_RELAY_PORT
#undef TCP_RELAY_PORT
#endif
#define TCP_RELAY_PORT 33448
START_TEST(test_many_clients_tcp)