]> sigrok.org Git - sigrok-cli.git/blobdiff - anykey.c
Build: Include <config.h> first in all source files
[sigrok-cli.git] / anykey.c
index 4126518e8a0801dc3700bdc3c0e86582668b47fd..7c801f1ce8b8bb6dbb3983346ff264330c8e1ab3 100644 (file)
--- a/anykey.c
+++ b/anykey.c
@@ -17,7 +17,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include "sigrok-cli.h"
+#include <config.h>
 #include <stdio.h>
 #ifdef _WIN32
 #include <windows.h>
@@ -27,6 +27,7 @@
 #include <unistd.h>
 #include <string.h>
 #include <glib.h>
+#include "sigrok-cli.h"
 
 #ifdef _WIN32
 static HANDLE stdin_handle;
@@ -38,6 +39,7 @@ static struct termios term_orig;
 static int received_anykey(int fd, int revents, void *cb_data)
 {
        struct sr_session *session;
+
        (void)fd;
        (void)revents;