From f9df5c3d19d9ecf46b70689dedf761828a6d1d07 Mon Sep 17 00:00:00 2001 From: nsz Date: Mon, 22 Oct 2012 19:06:33 +0200 Subject: [PATCH] api: use macro for fmtmsg and ndbm ifdef --- src/api/Makefile | 2 +- src/api/fmtmsg.c | 2 +- src/api/ndbm.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/Makefile b/src/api/Makefile index d8e1cd4..18d050a 100644 --- a/src/api/Makefile +++ b/src/api/Makefile @@ -1,5 +1,5 @@ CFLAGS+=-std=c99 -pedantic-errors -Wall -Werror -Wno-unused -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -#CFLAGS+=-DX_PS -DX_TPS -DX_TYM -DX_RPP_TPP +#CFLAGS+=-DX_PS -DX_TPS -DX_TYM -DX_RPP_TPP -DX_FMTMSG -DX_NDBM LDFLAGS+=-lcrypt -ldl -lm -lpthread -lrt SRC=$(sort $(wildcard *.c)) diff --git a/src/api/fmtmsg.c b/src/api/fmtmsg.c index 0371a5f..b89d58d 100644 --- a/src/api/fmtmsg.c +++ b/src/api/fmtmsg.c @@ -1,4 +1,4 @@ -#if 0 +#if X_FMTMSG #include #define C(n) switch(n){case n:;} static void f() diff --git a/src/api/ndbm.c b/src/api/ndbm.c index a4bfdd8..180851f 100644 --- a/src/api/ndbm.c +++ b/src/api/ndbm.c @@ -1,4 +1,4 @@ -#if 0 +#if X_NDBM #include #define T(t) (t*)0; #define F(t,n) {t *y = &x.n;} -- 2.20.1