1
0
mirror of https://github.com/adtools/clib2.git synced 2025-12-08 14:59:05 +00:00

- Corrected the thread-safe clearerr() macro.

- Fixed math_headers.h so that fabsf.c compiles correctly with SAS/C.


git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14940 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
Olaf Barthel
2005-05-08 17:02:16 +00:00
parent 2be60de3e7
commit 65484eac3c
2 changed files with 9 additions and 3 deletions

View File

@ -1,5 +1,5 @@
/*
* $Id: stdio.h,v 1.12 2005-05-07 13:21:49 obarthel Exp $
* $Id: stdio.h,v 1.13 2005-05-08 17:02:16 obarthel Exp $
*
* :ts=4
*
@ -310,7 +310,7 @@ extern char *tmpnam(char *buf);
/****************************************************************************/
#define clearerr(file) ((void)(flockfile(file), (file)->flags &= ~(__FILE_EOF|__FILE_ERROR), unlockfile(file)))
#define clearerr(file) ((void)(flockfile(file), (file)->flags &= ~(__FILE_EOF|__FILE_ERROR), funlockfile(file)))
#define feof(file) (flockfile(file), __unlockfile((file),((file)->flags & __FILE_EOF) != 0))
#define ferror(file) (flockfile(file), __unlockfile((file),((file)->flags & __FILE_ERROR) != 0))