]> sigrok.org Git - libsigrok.git/commit
sr: hantek-dso: Use portable g_ntohs() function.
authorUwe Hermann <redacted>
Wed, 13 Jun 2012 16:58:24 +0000 (18:58 +0200)
committerUwe Hermann <redacted>
Wed, 13 Jun 2012 23:21:00 +0000 (01:21 +0200)
commit384c28d9e74791a753bd25e471d20d970ab2346b
treedbc22ed898f35d03ec6f0f560994d85ec81f1911
parentc5841b28092ad9366cef5d512ddb10d6a34c9c0a
sr: hantek-dso: Use portable g_ntohs() function.

The ntohs() from <arpa/inet.h> is not available on MinGW/Windows. There
are ways to work around this, but as we use glib already, using g_ntohs()
is the best option anyway.
hardware/hantek-dso/api.c
hardware/hantek-dso/dso.c