Core: Add compile time option to use native OS logging facility
authorToby Gray <toby.gray@realvnc.com>
Tue, 9 Jul 2013 15:05:39 +0000 (16:05 +0100)
committerPete Batard <pete@akeo.ie>
Fri, 9 Aug 2013 00:55:04 +0000 (01:55 +0100)
commit9222a548bdea026c89057b65caf2832785ea702e
tree741eb234bb044a1f367fbd4f9393b117f647767c
parentb50a433c164996761344efb6c90594de7906fe56
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.
configure.ac
libusb/core.c
libusb/version_nano.h
msvc/config.h