summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2011-02-02 10:25:52 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2011-02-02 10:25:52 +0100
commit17830fe1a2445c109761a5f50aa9f6d665157cd0 (patch)
tree5712eb8d5beb554555bce509f7ab610da62a7815
parent7ea73e33f50211a1b3df6556f6fcfcbab6c36735 (diff)
downloadlibsigrokdecode-17830fe1a2445c109761a5f50aa9f6d665157cd0.tar.gz
libsigrokdecode-17830fe1a2445c109761a5f50aa9f6d665157cd0.zip
Fix build when no libusb-LA is compiled.
Until now the build would break if the user doesn't enable at least one of the libusb1.0-based LAs. I.e., you could not compile only OLS, or only the demo driver.
-rw-r--r--decode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/decode.c b/decode.c
index a6366b1..9f8c034 100644
--- a/decode.c
+++ b/decode.c
@@ -18,11 +18,11 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config.h"
#include <sigrokdecode.h> /* First, so we avoid a _POSIX_C_SOURCE warning. */
#include <stdio.h>
#include <string.h>
#include <dirent.h>
-#include <config.h>
/* Re-define some string functions for Python >= 3.0. */
#if PY_VERSION_HEX >= 0x03000000