e2ebe3e2ae
#pragma once is safer and simpler. According to Wikipedia it's supported by all major compilers.
15 lines
264 B
C
15 lines
264 B
C
#pragma once
|
|
|
|
#include <err.h>
|
|
|
|
#define die(...) errx(EXIT_FAILURE, __VA_ARGS__);
|
|
#define FREE(pointer) do { \
|
|
if (pointer != NULL) { \
|
|
free(pointer); \
|
|
pointer = NULL; \
|
|
} \
|
|
} \
|
|
while (0)
|
|
|
|
extern xcb_window_t root;
|