ansilove

ANSI and ASCII art to PNG converter in C
Log | Files | Refs | README | LICENSE

commit 5541164d179e420587ff36218c639d6daebe75a9
parent e867c7987fcfbeae5e9da539f88f14e3364e47f6
Author: Frederic Cambus <fred@statdns.com>
Date:   Tue,  9 Jun 2020 16:11:11 +0200

Define _GNU_SOURCE in CMakeLists.txt to avoid cluttering source files.

Diffstat:
MCMakeLists.txt | 2+-
Msrc/ansilove.c | 1-
Msrc/sauce.c | 2--
3 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt @@ -44,7 +44,7 @@ if(NOT HAVE_STRTONUM) set (SRC ${SRC} compat/strtonum.c) endif() -add_definitions(-Wall -Wextra -std=c99 -pedantic) +add_definitions(-D_GNU_SOURCE -Wall -Wextra -std=c99 -pedantic) add_executable(ansilove ${SRC}) target_link_libraries(ansilove ${ANSILOVE_LIBRARIES} m) diff --git a/src/ansilove.c b/src/ansilove.c @@ -10,7 +10,6 @@ * See LICENSE file for details. */ -#define _GNU_SOURCE #include <sys/time.h> #include <ansilove.h> #include <err.h> diff --git a/src/sauce.c b/src/sauce.c @@ -10,8 +10,6 @@ * See LICENSE file for details. */ -#define _XOPEN_SOURCE 700 - #include <stdint.h> #include <stdlib.h> #include <string.h>