diff options
author | Eric Andersen <andersen@codepoet.org> | 2006-12-12 21:43:59 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2006-12-12 21:43:59 +0000 |
commit | 72aa8c4e3d15da391652f9549a89a11e65d513f4 (patch) | |
tree | 63c15f839252c4b1d84d1dfa989d02137e5772cb /libc/stdio | |
parent | 3e7394c25f0869691e662685abb18492ff09d827 (diff) |
Fix/disable locking when pthreads is disabled
Diffstat (limited to 'libc/stdio')
-rw-r--r-- | libc/stdio/_stdio.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libc/stdio/_stdio.h b/libc/stdio/_stdio.h index 4c1e4415f..74b891a03 100644 --- a/libc/stdio/_stdio.h +++ b/libc/stdio/_stdio.h @@ -36,6 +36,8 @@ #define __STDIO_THREADUNLOCK_OPENLIST_DEL \ __UCLIBC_MUTEX_UNLOCK(_stdio_openlist_del_lock) + +#ifdef __UCLIBC_HAS_THREADS__ #define __STDIO_OPENLIST_INC_USE \ do { \ __STDIO_THREADLOCK_OPENLIST_DEL; \ @@ -62,14 +64,25 @@ do { \ __STDIO_THREADUNLOCK_OPENLIST_DEL; \ } while (0) +#endif /* __UCLIBC_HAS_THREADS__ */ #endif /* __STDIO_BUFFERS */ #ifndef __STDIO_THREADLOCK_OPENLIST_DEL #define __STDIO_THREADLOCK_OPENLIST_DEL ((void)0) +#endif +#ifndef __STDIO_THREADUNLOCK_OPENLIST_DEL #define __STDIO_THREADUNLOCK_OPENLIST_DEL ((void)0) +#endif +#ifndef __STDIO_OPENLIST_INC_USE #define __STDIO_OPENLIST_INC_USE ((void)0) +#endif +#ifndef __STDIO_OPENLIST_DEC_USE #define __STDIO_OPENLIST_DEC_USE ((void)0) +#endif +#ifndef __STDIO_OPENLIST_INC_DEL_CNT #define __STDIO_OPENLIST_INC_DEL_CNT ((void)0) +#endif +#ifndef __STDIO_OPENLIST_DEC_DEL_CNT #define __STDIO_OPENLIST_DEC_DEL_CNT ((void)0) #endif |