bdf2sfd

BDF to SFD converter, allowing to vectorize bitmap fonts
Log | Files | Refs | README | LICENSE

commit 5e6e285bb1cead12276b65a997eaedebc741fab6
parent 92db2c58817eb41a36b1f656e855d38a9b725db2
Author: Frederic Cambus <fred@statdns.com>
Date:   Tue,  9 Jun 2020 15:48:42 +0200

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

Diffstat:
MCMakeLists.txt | 2+-
Msrc/bdf2sfd.c | 6+-----
2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt @@ -36,7 +36,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(bdf2sfd ${SRC}) install(TARGETS bdf2sfd DESTINATION ${CMAKE_INSTALL_BINDIR}) diff --git a/src/bdf2sfd.c b/src/bdf2sfd.c @@ -4,16 +4,12 @@ * https://github.com/fcambus/bdf2sfd * * Created: 2019-11-21 - * Last Updated: 2020-03-30 + * Last Updated: 2020-06-09 * * bdf2sfd is released under the BSD 2-Clause license * See LICENSE file for details */ -#define _XOPEN_SOURCE 600 -#define _POSIX_C_SOURCE 199309L -#define _POSIX_SOURCE - #include <sys/stat.h> #include <sys/time.h> #include <sys/types.h>