tools

various tools
git clone git://deadbeef.fr/tools.git
Log | Files | Refs | README | LICENSE

commit 02d2827aa257ae919123ef1d046732b388eaa2d2
parent 38acd1c559e5cd9fdeb35e49c245e9395f64ad2d
Author: Morel BĂ©renger <berengermorel76@gmail.com>
Date:   Mon, 11 Jan 2021 04:18:05 +0100

all: no longer bother and just include stdio

Diffstat:
Mbtl/src/optparser.hpp | 6++----
Mbtl/src/utils.hpp | 3+++
2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/btl/src/optparser.hpp b/btl/src/optparser.hpp @@ -42,10 +42,8 @@ extern "C" { #define STD_HELP { "help", "shows this message", 'h', 0, nullptr, nullptr, nullptr } -#ifndef FILE_PTR -#warning "FILE_PTR was not defined, defaulting to void*" -#define FILE_PTR void* -#endif +//TODO I wish this could be avoided, but FILE* is used there. +#include <stdio.h> // this could probably be optimized, but considering it should not be used that // often, I think it's better to just keep it as easy to use as possible. diff --git a/btl/src/utils.hpp b/btl/src/utils.hpp @@ -22,6 +22,9 @@ #ifndef UTILS_HPP #define UTILS_HPP +//TODO I wish this could be avoided, but FILE* is used there. +#include <stdio.h> + #define xstr(s) str(s) #define str(s) #s #define HEADER_LOG __FILE__ "[" xstr(__LINE__) "]"