diff --git a/src/include/ngspice/cpextern.h b/src/include/ngspice/cpextern.h index b4334e4eb..97e761298 100644 --- a/src/include/ngspice/cpextern.h +++ b/src/include/ngspice/cpextern.h @@ -119,15 +119,13 @@ extern void cp_init(void); extern bool out_moremode; extern bool out_isatty; extern void out_init(void); -#ifndef out_printf -/* don't want to declare it if we have #define'ed it */ + #ifdef __GNUC__ extern void out_printf(char *fmt, ...) __attribute__ ((format (__printf__, 1, 2))); #else extern void out_printf(char *fmt, ...); #endif -#endif extern void out_send(char *string); /* quote.c */ diff --git a/src/ngsconvert.c b/src/ngsconvert.c index 51238ae6b..fae155fe2 100644 --- a/src/ngsconvert.c +++ b/src/ngsconvert.c @@ -435,9 +435,7 @@ void cp_usrvars(struct variable **v1, struct variable **v2) { *v1 = NULL; *v2 = int cp_evloop(char *s) { NG_IGNORE(s); return (0); } void cp_ccon(bool o) { NG_IGNORE(o); } char*if_errstring(int c) { NG_IGNORE(c); return ("error"); } -#ifndef out_printf void out_printf(char *fmt, ...) { NG_IGNORE(fmt); } -#endif void out_send(char *string) { NG_IGNORE(string); } struct variable * cp_enqvar(char *word) { NG_IGNORE(word); return (NULL); } struct dvec *vec_get(const char *word) { NG_IGNORE(word); return (NULL); }