X-Git-Url: https://git.sur5r.net/?p=i3%2Fi3;a=blobdiff_plain;f=i3-input%2Fi3-input.h;h=d7aae66b5f8ffb1033f93155d5e74eed20c2146a;hp=f494cbd56704c260c4806e486a17fd301948c4b8;hb=HEAD;hpb=36464c7a546cb8541d55157bf7dd89aea8645a94 diff --git a/i3-input/i3-input.h b/i3-input/i3-input.h index f494cbd5..d7aae66b 100644 --- a/i3-input/i3-input.h +++ b/i3-input/i3-input.h @@ -1,17 +1,14 @@ -#ifndef _I3_INPUT -#define _I3_INPUT +#pragma once + +#include #include #define die(...) errx(EXIT_FAILURE, __VA_ARGS__); -#define FREE(pointer) do { \ - if (pointer != NULL) { \ - free(pointer); \ - pointer = NULL; \ - } \ -} \ -while (0) +#define FREE(pointer) \ + do { \ + free(pointer); \ + pointer = NULL; \ + } while (0) extern xcb_window_t root; - -#endif