diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2014-10-23 22:10:17 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2014-10-23 22:10:17 +0200 |
| commit | ebde7690075525341f9a90a000dcd4a569b0350a (patch) | |
| tree | e6de8955c729946ee0877c4b9228f398c62f29df | |
| parent | ae1c161dcf449da454f0a2dfd7681d95a2a4ff09 (diff) | |
| download | vis-ebde7690075525341f9a90a000dcd4a569b0350a.tar.gz vis-ebde7690075525341f9a90a000dcd4a569b0350a.tar.xz | |
Move feature test macros to config.mk
| -rw-r--r-- | config.mk | 3 | ||||
| -rw-r--r-- | editor.c | 2 | ||||
| -rw-r--r-- | text.c | 2 | ||||
| -rw-r--r-- | vis.c | 4 | ||||
| -rw-r--r-- | window.c | 1 |
5 files changed, 2 insertions, 10 deletions
@@ -9,7 +9,8 @@ MANPREFIX = ${PREFIX}/share/man INCS = -I. LIBS = -lc -lncursesw -CFLAGS += -std=c99 -Os ${INCS} -DVERSION=\"${VERSION}\" -DNDEBUG +CFLAGS += -std=c99 -Os ${INCS} -DVERSION=\"${VERSION}\" -DNDEBUG -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 + LDFLAGS += ${LIBS} DEBUG_CFLAGS = ${CFLAGS} -UNDEBUG -O0 -g -ggdb -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter @@ -1,5 +1,3 @@ -#define _DEFAULT_SOURCE -#define _BSD_SOURCE #include <stdlib.h> #include <string.h> #include <stdarg.h> @@ -13,8 +13,6 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#define _DEFAULT_SOURCE -#define _BSD_SOURCE #include <unistd.h> #include <stdio.h> #include <stdlib.h> @@ -13,10 +13,6 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#define _DEFAULT_SOURCE -#define _POSIX_SOURCE -/* Necessary for SIGWINCH on OpenBSD */ -#define _BSD_SOURCE #include <locale.h> #include <stdlib.h> #include <unistd.h> @@ -13,7 +13,6 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#define _XOPEN_SOURCE #include <string.h> #include <stdlib.h> #include <wchar.h> |
