[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-dev] test_status.c on MSVC



The test/test_status.c fails to compile using MSVC since
the statement:
 log_global_min_severity_ = LOG_DEBUG;

Ref. https://gitweb.torproject.org/tor.git/commit/3ce3984772b673b82a87aded1bc8a1a0f1969e19?f=src/test/test_status.c

This 'log_global_min_severity_' variable should not be only for GNU-C?
So this patch fixed it for MSVC:

--- common/torlog.h.orig  2014-05-09 23:20:36 +0000
+++ common/torlog.h       2014-05-10 13:06:15 +0000
@@ -156,9 +156,9 @@
int tor_log_get_sigsafe_err_fds(const int **out);
void tor_log_update_sigsafe_err_fds(void);

-#if defined(__GNUC__) || defined(RUNNING_DOXYGEN)
extern int log_global_min_severity_;

+#if defined(__GNUC__) || defined(RUNNING_DOXYGEN)
void log_fn_(int severity, log_domain_mask_t domain,
             const char *funcname, const char *format, ...)
  CHECK_PRINTF(4,5);

--gv
_______________________________________________
tor-dev mailing list
tor-dev@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev