Include errno.h instead of defining errno as extern int.
This commit is contained in:
parent
c21977a635
commit
314b0deae9
|
@ -8,6 +8,7 @@
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <errno.h>
|
||||||
|
|
||||||
#define Malloc(type,n) ((type *) malloc(sizeof(type)*(n)))
|
#define Malloc(type,n) ((type *) malloc(sizeof(type)*(n)))
|
||||||
#define Free(p) (free((char *)(p)))
|
#define Free(p) (free((char *)(p)))
|
||||||
|
@ -42,7 +43,6 @@ char *scheme2c_strcpy(s48_value sstr)
|
||||||
{
|
{
|
||||||
char *result;
|
char *result;
|
||||||
int slen;
|
int slen;
|
||||||
extern int errno;
|
|
||||||
|
|
||||||
slen = S48_STRING_LENGTH(sstr);
|
slen = S48_STRING_LENGTH(sstr);
|
||||||
result = Malloc(char, slen+1);
|
result = Malloc(char, slen+1);
|
||||||
|
|
Loading…
Reference in New Issue