From 65484eac3c90eda0eee5db51da2b9e51a0c22a0c Mon Sep 17 00:00:00 2001 From: Olaf Barthel Date: Sun, 8 May 2005 17:02:16 +0000 Subject: [PATCH] - 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 --- library/include/stdio.h | 4 ++-- library/math_headers.h | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/library/include/stdio.h b/library/include/stdio.h index 3b9327a..0f6d0f8 100644 --- a/library/include/stdio.h +++ b/library/include/stdio.h @@ -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)) diff --git a/library/math_headers.h b/library/math_headers.h index 2c80fc1..f7d4c8f 100644 --- a/library/math_headers.h +++ b/library/math_headers.h @@ -1,5 +1,5 @@ /* - * $Id: math_headers.h,v 1.8 2005-05-07 17:03:55 obarthel Exp $ + * $Id: math_headers.h,v 1.9 2005-05-08 17:02:10 obarthel Exp $ * * :ts=4 * @@ -89,6 +89,12 @@ /****************************************************************************/ +extern struct Library * NOCOMMON MathIeeeSingBasBase; +extern struct Library * NOCOMMON MathIeeeDoubBasBase; +extern struct Library * NOCOMMON MathIeeeDoubTransBase; + +/****************************************************************************/ + #endif /* IEEE_FLOATING_POINT_SUPPORT */ /****************************************************************************/