out_printf() is not supposed to be a preprocessor macro

This commit is contained in:
rlar 2012-08-18 18:37:16 +02:00
parent 0af75f3bd9
commit 67132108ad
2 changed files with 1 additions and 5 deletions

View File

@ -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 */

View File

@ -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); }