From 4999503f7e76a4f49c287f62293321f265eb71fa Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 14 Jul 2018 19:56:45 -0400 Subject: driver: argv usage and error output: use the signal-resilient amgc_dprintf(). --- src/internal/apimagic_dprintf_impl.h | 4 ++++ src/internal/apimagic_driver_impl.h | 1 + 2 files changed, 5 insertions(+) diff --git a/src/internal/apimagic_dprintf_impl.h b/src/internal/apimagic_dprintf_impl.h index becc889..76dccc8 100644 --- a/src/internal/apimagic_dprintf_impl.h +++ b/src/internal/apimagic_dprintf_impl.h @@ -1,6 +1,10 @@ #ifndef APIMAGIC_DPRINTF_IMPL_H #define APIMAGIC_DPRINTF_IMPL_H +#ifdef ARGV_DRIVER +#define argv_dprintf amgc_dprintf +#endif + int amgc_dprintf(int fd, const char * fmt, ...); #endif diff --git a/src/internal/apimagic_driver_impl.h b/src/internal/apimagic_driver_impl.h index d2a6819..44268e0 100644 --- a/src/internal/apimagic_driver_impl.h +++ b/src/internal/apimagic_driver_impl.h @@ -6,6 +6,7 @@ #include #include +#include "apimagic_dprintf_impl.h" #include "argv/argv.h" #ifndef AMGC_TAB_WIDTH -- cgit v1.2.3