summaryrefslogtreecommitdiff
path: root/msvc
diff options
context:
space:
mode:
authorToby Gray <toby.gray@realvnc.com>2013-07-09 16:05:39 +0100
committerPete Batard <pete@akeo.ie>2013-08-09 01:55:04 +0100
commit9222a548bdea026c89057b65caf2832785ea702e (patch)
tree741eb234bb044a1f367fbd4f9393b117f647767c /msvc
parentb50a433c164996761344efb6c90594de7906fe56 (diff)
downloadlibusb-9222a548bdea026c89057b65caf2832785ea702e.tar.gz
Core: Add compile time option to use native OS logging facility
* This change makes it easier to debug issues in UI applications which don't necessarily have a console connected to stderr. * Outputting to the debugger shouldn't occur in normal situations so this change has to be explicitly enabled by a build-time config flag. * Uses OutputDebugString() on Windows platforms or the syslog facility on other OSes, if available. * Also align the report of configure defaults to autotool's.
Diffstat (limited to 'msvc')
-rw-r--r--msvc/config.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/msvc/config.h b/msvc/config.h
index bb542c5..4b418db 100644
--- a/msvc/config.h
+++ b/msvc/config.h
@@ -25,6 +25,9 @@
/* Uncomment to start with debug message logging enabled */
// #define ENABLE_DEBUG_LOGGING 1
+/* Uncomment to enabling logging to system log */
+// #define USE_SYSTEM_LOGGING_FACILITY
+
/* type of second poll() argument */
#define POLL_NFDS_TYPE unsigned int