libansilove

Library for converting ANSI, ASCII, and other formats to PNG
Log | Files | Refs | README | LICENSE

commit 74ca5492ca000ae21cbb2e1255cfcffff4e17315
parent bf0b59e2712e3b2ba7417289edeccee65419a8c8
Author: Frederic Cambus <fred@statdns.com>
Date:   Tue,  9 Jun 2020 16:05:06 +0200

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

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

diff --git a/CMakeLists.txt b/CMakeLists.txt @@ -28,7 +28,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_library(ansilove SHARED ${SRC} ${LOADERS}) target_link_libraries(ansilove ${GD_LIBRARIES} m) diff --git a/src/loaders/ansi.c b/src/loaders/ansi.c @@ -10,9 +10,6 @@ * See LICENSE file for details. */ -#define _XOPEN_SOURCE 700 -#define _NETBSD_SOURCE - #include <gd.h> #include <limits.h> #include <math.h>