changed some header file from djgpp to mingw32

svn path=/trunk/; revision=261
This commit is contained in:
Boudewijn Dekker 1999-02-21 13:33:27 +00:00
parent 38c0489092
commit 87028edf14
9 changed files with 10 additions and 23 deletions

View file

@ -7,9 +7,6 @@
#include <libc/file.h>
#ifndef __dj_include_stdio_h_
#define _name_to_remove _tmpfname
#endif
int
fclose(FILE *f)

View file

@ -1,11 +1,9 @@
/* Copyright (C) 1996 DJ Delorie, see COPYING.DJ for details */
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
//#include <libc/stubs.h>
#include <stdio.h>
#include <sys/types.h>
#include <stdlib.h>
//#include <unistd.h>
//#include <go32.h>
#include <libc/file.h>
#include <io.h>

View file

@ -1,17 +1,14 @@
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
//#include <libc/stubs.h>
#include <sys/types.h>
#include <stdio.h>
#include <io.h>
#include <fcntl.h>
//#include <unistd.h>
#include <libc/file.h>
//#include <libc/local.h>
//#include <libc/dosio.h>
FILE * __alloc_file(void);
extern int _fmode;
FILE *
fopen(const char *file, const char *mode)

View file

@ -1,13 +1,11 @@
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
//#include <libc/stubs.h>
#include <sys/types.h>
#include <stdio.h>
#include <fcntl.h>
//#include <unistd.h>
#include <libc/file.h>
#include <io.h>
extern int _fmode;
FILE *
freopen(const char *file, const char *mode, FILE *f)

View file

@ -9,7 +9,7 @@ fscanf(FILE *f, const char *fmt, ...)
int r;
va_list a=0;
va_start(a, fmt);
r = _doscan(f, fmt, a);
r = _doscan(f, fmt,(void *) a);
va_end(a);
return r;
}

View file

@ -3,7 +3,7 @@
#include <errno.h>
int
fsetpos(FILE *stream, const fpos_t *pos)
fsetpos(FILE *stream, fpos_t *pos)
{
if (stream && pos)
{

View file

@ -1,9 +1,10 @@
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
#include <stdio.h>
#include <io.h>
#include <windows.h>
#include <libc/file.h>
#undef getc
int getc(FILE *f)
{
int c;

View file

@ -1,7 +1,7 @@
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
#include <stdio.h>
#include <libc/file.h>
//#include <libc/stdiohk.h>
FILE _iob[] =

View file

@ -2,20 +2,16 @@
/* Copyright (C) 1997 DJ Delorie, see COPYING.DJ for details */
/* Copyright (C) 1998 DJ Delorie, see COPYING.DJ for details */
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
//#include <libc/stubs.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <fcntl.h>
//#include <unistd.h>
#include <io.h>
#include <libc/file.h>
#include <share.h>
#ifndef __dj_include_stdio_h_
#define _name_to_remove _tmpfname
#endif
FILE * __alloc_file(void);