declaration of sprintf only if __STDC__ is not defined
This commit is contained in:
parent
e52091ea7c
commit
319d9bcfe0
5 changed files with 26 additions and 5 deletions
|
@ -12,7 +12,11 @@
|
||||||
#include "comm1.h"
|
#include "comm1.h"
|
||||||
#include "y.tab.h"
|
#include "y.tab.h"
|
||||||
|
|
||||||
extern char *sprintf();
|
#ifndef __STDC__
|
||||||
|
extern char *sprintf();
|
||||||
|
#else
|
||||||
|
/* sprintf should be declared in stdio.h, as returning an int */
|
||||||
|
#endif
|
||||||
|
|
||||||
valu_t
|
valu_t
|
||||||
load(ip)
|
load(ip)
|
||||||
|
|
|
@ -19,7 +19,11 @@ static char rcsid[] = "$Header$";
|
||||||
* Author: Hans van Staveren
|
* Author: Hans van Staveren
|
||||||
*/
|
*/
|
||||||
|
|
||||||
extern char *sprintf();
|
#ifndef __STDC__
|
||||||
|
extern char *sprintf();
|
||||||
|
#else
|
||||||
|
/* sprintf should be declared in stdio.h, as returning an int */
|
||||||
|
#endif
|
||||||
|
|
||||||
#define LLEAF 01
|
#define LLEAF 01
|
||||||
#define LDEF 02
|
#define LDEF 02
|
||||||
|
|
|
@ -29,7 +29,11 @@ static char rcsid2[] = "$Header$";
|
||||||
* Author: Hans van Staveren
|
* Author: Hans van Staveren
|
||||||
*/
|
*/
|
||||||
|
|
||||||
extern char *sprintf();
|
#ifndef __STDC__
|
||||||
|
extern char *sprintf();
|
||||||
|
#else
|
||||||
|
/* sprintf should be declared in stdio.h, as returning an int */
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef newplb /* retrofit for older mach.h */
|
#ifndef newplb /* retrofit for older mach.h */
|
||||||
#define newplb newilb
|
#define newplb newilb
|
||||||
|
|
|
@ -19,7 +19,11 @@ static char rcsid[] = "$Header$";
|
||||||
* Author: Hans van Staveren
|
* Author: Hans van Staveren
|
||||||
*/
|
*/
|
||||||
|
|
||||||
extern char *sprintf();
|
#ifndef __STDC__
|
||||||
|
extern char *sprintf();
|
||||||
|
#else
|
||||||
|
/* sprintf should be declared in stdio.h, as returning an int */
|
||||||
|
#endif
|
||||||
|
|
||||||
string mystrcpy();
|
string mystrcpy();
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,12 @@
|
||||||
|
|
||||||
#include "booth.h"
|
#include "booth.h"
|
||||||
|
|
||||||
char *strncpy(), *strcpy(), *sprintf();
|
extern char *strncpy(), *strcpy();
|
||||||
|
#ifndef __STDC__
|
||||||
|
extern char *sprintf();
|
||||||
|
#else
|
||||||
|
/* sprintf should be declared in stdio.h, as returning an int */
|
||||||
|
#endif
|
||||||
|
|
||||||
char * myalloc(n) {
|
char * myalloc(n) {
|
||||||
register char *p;
|
register char *p;
|
||||||
|
|
Loading…
Add table
Reference in a new issue