diff options
author | Joe <bousset.rudy@gmail.com> | 2022-06-27 21:54:42 +0200 |
---|---|---|
committer | Joe <bousset.rudy@gmail.com> | 2022-06-27 21:54:42 +0200 |
commit | d34f7e2196d61675bdff26d84b1f402b86685cef (patch) | |
tree | f4498521a9fe0eeb9db98e6587cb32cea125184f | |
parent | First commit (diff) | |
download | mpdview-d34f7e2196d61675bdff26d84b1f402b86685cef.tar.gz mpdview-d34f7e2196d61675bdff26d84b1f402b86685cef.tar.bz2 mpdview-d34f7e2196d61675bdff26d84b1f402b86685cef.tar.xz mpdview-d34f7e2196d61675bdff26d84b1f402b86685cef.tar.zst mpdview-d34f7e2196d61675bdff26d84b1f402b86685cef.zip |
WIP
-rw-r--r-- | Makefile | 7 | ||||
-rw-r--r-- | src/c_mpdview.c | 7 | ||||
-rw-r--r-- | src/c_mpdview.h | 8 |
3 files changed, 18 insertions, 4 deletions
@@ -11,7 +11,7 @@ # ======================== # # mpdview: Makefile -# Mon, 27 Jun 2022 21:13:30 +0200 +# Mon, 27 Jun 2022 21:48:02 +0200 # Joe # # BSD Makefile @@ -37,12 +37,13 @@ INCS := ${SRCS:.c=.h} NAME := mpdview CC ?= cc -CFLAGS := -std=c89 +CFLAGS := -std=gnu89 CFLAGS += -Wall CFLAGS += -Wextra CFLAGS += -Werror CFLAGS += -pedantic -CFLAGS += -march=native -O2 -pipe +CFLAGS += -isystem/usr/local/include +# CFLAGS += -march=native -O2 -pipe RM := rm -f MKDIR := mkdir -p diff --git a/src/c_mpdview.c b/src/c_mpdview.c index 8c6a6a1..b163e42 100644 --- a/src/c_mpdview.c +++ b/src/c_mpdview.c @@ -39,12 +39,17 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * mpdview: src/c_mpdview.c - * Mon, 27 Jun 2022 21:20:37 +0200 + * Mon, 27 Jun 2022 21:48:06 +0200 * Joe * * This is the entrypoint of the program. */ +#include <stdio.h> +#include <unistd.h> + +#include <mpd/client.h> + int main (int argc, diff --git a/src/c_mpdview.h b/src/c_mpdview.h index fc904a4..ad9338f 100644 --- a/src/c_mpdview.h +++ b/src/c_mpdview.h @@ -48,4 +48,12 @@ #define PROGNAME "mpdview" +typedef char bool_t; +typedef void* ptr_t; + +enum bool_e { + FALSE, + TRUE +}; + #endif /* __C_MPDVIEW_H__ */ |