From: nsz Date: Mon, 22 Oct 2012 17:06:33 +0000 (+0200) Subject: api: use macro for fmtmsg and ndbm ifdef X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=f9df5c3d19d9ecf46b70689dedf761828a6d1d07;hp=9e10bbeb38b90d7e885a148e8f701261eb17c1ca;p=libc-test api: use macro for fmtmsg and ndbm ifdef --- 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;}