Move includes to source file

This commit is contained in:
Kristóf Tóth 2021-10-16 22:43:34 +02:00
parent 86ed0f7989
commit 0729d9a9ee
2 changed files with 9 additions and 9 deletions

View File

@ -1,6 +1,14 @@
#include <errno.h>
#include "evdev.h"
#include <errno.h>
#include <linux/input.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
int block_until_keypress(const char* keyboardPath) {
int keyboardFd = open(keyboardPath, O_RDONLY);

View File

@ -1,13 +1,5 @@
#pragma once
#include <linux/input.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#define NUM_EVENTS 128