diff --git a/tests/test_rand.c b/tests/test_rand.c index 6f04551..19c47fb 100644 --- a/tests/test_rand.c +++ b/tests/test_rand.c @@ -34,6 +34,7 @@ void xmpp_free(const xmpp_ctx_t *ctx, void *p) (void)p; } +#ifndef HAVE_SNPRINTF int xmpp_snprintf(char *str, size_t count, const char *fmt, ...) { (void)str; @@ -41,6 +42,7 @@ int xmpp_snprintf(char *str, size_t count, const char *fmt, ...) (void)fmt; return 0; } +#endif /* HAVE_SNPRINTF */ uint64_t time_stamp(void) {