diff --git a/src/common.h b/src/common.h new file mode 100644 index 0000000..b641277 --- /dev/null +++ b/src/common.h @@ -0,0 +1,7 @@ +#ifndef COMMON_H +#define COMMON_H + +#define FALSE 0 +#define TRUE 1 + +#endif diff --git a/src/tty-solitaire.c b/src/tty-solitaire.c index 8bb701f..6cf0e4a 100644 --- a/src/tty-solitaire.c +++ b/src/tty-solitaire.c @@ -1,9 +1,7 @@ #include #include #include - -#define FALSE 0 -#define TRUE 1 +#include "common.h" #define CARD_FRAME_WIDTH 7 #define CARD_FRAME_HEIGHT 5