api: use macro for fmtmsg and ndbm ifdef
authornsz <nsz@port70.net>
Mon, 22 Oct 2012 17:06:33 +0000 (19:06 +0200)
committernsz <nsz@port70.net>
Mon, 22 Oct 2012 17:06:33 +0000 (19:06 +0200)
src/api/Makefile
src/api/fmtmsg.c
src/api/ndbm.c

index d8e1cd4..18d050a 100644 (file)
@@ -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))
index 0371a5f..b89d58d 100644 (file)
@@ -1,4 +1,4 @@
-#if 0
+#if X_FMTMSG
 #include <fmtmsg.h>
 #define C(n) switch(n){case n:;}
 static void f()
index a4bfdd8..180851f 100644 (file)
@@ -1,4 +1,4 @@
-#if 0
+#if X_NDBM
 #include <ndbm.h>
 #define T(t) (t*)0;
 #define F(t,n) {t *y = &x.n;}