diff options
author | David McCullough <davidm@snapgear.com> | 2001-07-11 13:47:45 +0000 |
---|---|---|
committer | David McCullough <davidm@snapgear.com> | 2001-07-11 13:47:45 +0000 |
commit | ce8ee8d9b401c9c2828df3457815c2f4ceed4900 (patch) | |
tree | fc27874f9403ddfd24357f56d87d6ffe08d8ae19 /libc/sysdeps/linux/mips | |
parent | 5882811b88767f26c75913ca2b2fffd05595a7b5 (diff) |
Added __BEGIN_DECLS and __END_DECLS to the files that didn't have
it and that I could see needed it.
Should be pretty low impact as these are only defined when using C++.
Diffstat (limited to 'libc/sysdeps/linux/mips')
-rw-r--r-- | libc/sysdeps/linux/mips/bits/cmathcalls.h | 3 | ||||
-rw-r--r-- | libc/sysdeps/linux/mips/bits/dlfcn.h | 2 | ||||
-rw-r--r-- | libc/sysdeps/linux/mips/bits/errno.h | 6 | ||||
-rw-r--r-- | libc/sysdeps/linux/mips/bits/libc-lock.h | 3 | ||||
-rw-r--r-- | libc/sysdeps/linux/mips/bits/sigset.h | 3 | ||||
-rw-r--r-- | libc/sysdeps/linux/mips/bits/sigthread.h | 4 |
6 files changed, 21 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/mips/bits/cmathcalls.h b/libc/sysdeps/linux/mips/bits/cmathcalls.h index 2d186c41e..6679500be 100644 --- a/libc/sysdeps/linux/mips/bits/cmathcalls.h +++ b/libc/sysdeps/linux/mips/bits/cmathcalls.h @@ -47,6 +47,7 @@ #define _Mdouble_complex_ _Mdouble_ _Complex +__BEGIN_DECLS /* Trigonometric functions. */ @@ -156,3 +157,5 @@ __MATH_PRECNAME(conj) (_Mdouble_complex_ __z) __THROW } #endif + +__END_DECLS diff --git a/libc/sysdeps/linux/mips/bits/dlfcn.h b/libc/sysdeps/linux/mips/bits/dlfcn.h index 006eeb683..21aac6542 100644 --- a/libc/sysdeps/linux/mips/bits/dlfcn.h +++ b/libc/sysdeps/linux/mips/bits/dlfcn.h @@ -54,6 +54,8 @@ # define DL_CALL_FCT(fctp, args) \ (_dl_mcount_wrapper_check (fctp), (*(fctp)) args) +__BEGIN_DECLS /* This function calls the profiling functions. */ extern void _dl_mcount_wrapper_check (void *__selfpc) __THROW; +__END_DECLS #endif diff --git a/libc/sysdeps/linux/mips/bits/errno.h b/libc/sysdeps/linux/mips/bits/errno.h index e0c1dc5c6..53db5dd7b 100644 --- a/libc/sysdeps/linux/mips/bits/errno.h +++ b/libc/sysdeps/linux/mips/bits/errno.h @@ -28,6 +28,9 @@ # define ENOTSUP EOPNOTSUPP # ifndef __ASSEMBLER__ + +__BEGIN_DECLS + /* We now need a declaration of the `errno' variable. */ extern int errno; @@ -43,6 +46,9 @@ extern int *__errno_location (void); /* When using threads, errno is a per-thread value. */ # define errno (*__errno_location ()) # endif + +__END_DECLS + # endif /* !__ASSEMBLER__ */ #endif /* _ERRNO_H */ diff --git a/libc/sysdeps/linux/mips/bits/libc-lock.h b/libc/sysdeps/linux/mips/bits/libc-lock.h index dbd9cc14f..fa43d4839 100644 --- a/libc/sysdeps/linux/mips/bits/libc-lock.h +++ b/libc/sysdeps/linux/mips/bits/libc-lock.h @@ -200,6 +200,8 @@ typedef pthread_key_t __libc_key_t; /* Functions that are used by this file and are internal to the GNU C library. */ +__BEGIN_DECLS + extern int __pthread_mutex_init (pthread_mutex_t *__mutex, __const pthread_mutexattr_t *__mutex_attr); @@ -250,6 +252,7 @@ extern int __pthread_atfork (void (*__prepare) (void), void (*__parent) (void), void (*__child) (void)); +__END_DECLS /* Make the pthread functions weak so that we can elide them from diff --git a/libc/sysdeps/linux/mips/bits/sigset.h b/libc/sysdeps/linux/mips/bits/sigset.h index 66a9c51c5..de852a8a0 100644 --- a/libc/sysdeps/linux/mips/bits/sigset.h +++ b/libc/sysdeps/linux/mips/bits/sigset.h @@ -97,6 +97,8 @@ typedef struct # endif # endif +__BEGIN_DECLS + /* These functions needn't check for a bogus signal number -- error checking is done in the non __ versions. */ @@ -121,5 +123,6 @@ __SIGSETFN (__sigdelset, ((__set->__val[__word] &= ~__mask), 0), ) # undef __SIGSETFN # endif +__END_DECLS #endif /* ! _SIGSET_H_fns. */ diff --git a/libc/sysdeps/linux/mips/bits/sigthread.h b/libc/sysdeps/linux/mips/bits/sigthread.h index b86e75f20..8ca688c59 100644 --- a/libc/sysdeps/linux/mips/bits/sigthread.h +++ b/libc/sysdeps/linux/mips/bits/sigthread.h @@ -24,6 +24,8 @@ # error "Never include this file directly. Use <pthread.h> instead" #endif +__BEGIN_DECLS + /* Functions for handling signals. */ /* Modify the signal mask for the calling thread. The arguments have @@ -35,4 +37,6 @@ extern int pthread_sigmask (int __how, /* Send signal SIGNO to the given thread. */ extern int pthread_kill (pthread_t __thread, int __signo) __THROW; +__END_DECLS + #endif /* bits/sigthread.h */ |