]> sigrok.org Git - pulseview.git/commit
tests: Fix #include order.
authorUwe Hermann <redacted>
Wed, 16 Oct 2013 15:37:09 +0000 (17:37 +0200)
committerUwe Hermann <redacted>
Wed, 16 Oct 2013 15:37:09 +0000 (17:37 +0200)
commit6ab7877549ced42972b4f4f648e363e544cd1c7d
treec6f67bd7e4ac74e615c59d4202b096cb809b9105
parent1429b21db812b591699341712af2f1dd448363c5
tests: Fix #include order.

<libsigrokdecode/libsigrokdecode.h> should be included first (as the
comment says), otherwise a warning can be the result (error in this
case due to -Werror usage):

[ 90%] Building CXX object test/CMakeFiles/pulseview-test.dir/data/decoder.cpp.o
In file included from /usr/include/python3.2mu/Python.h:8:0,
                 from [....]/include/libsigrokdecode/libsigrokdecode.h:25,
                 from [....]/test/data/decoder.cpp:23:
/usr/include/python3.2mu/pyconfig.h:1182:0: error: "_POSIX_C_SOURCE" redefined [-Werror]
 #define _POSIX_C_SOURCE 200112L
 ^
test/data/decoder.cpp