From: kosmirror <kos...@us...> - 2025-05-23 00:07:29
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "A pseudo Operating System for the Dreamcast.". The branch, master has been updated via 138477b71b164d466023a29e316631f3e0bfcaef (commit) from f6f303f21187602e2783b64295c73d6650c8c17c (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 138477b71b164d466023a29e316631f3e0bfcaef Author: QuzarDC <qu...@co...> Date: Tue May 20 18:23:58 2025 -0400 Add missing DECLS to pthreads and sys headers. ----------------------------------------------------------------------- Summary of changes: addons/libpthread/pthread-internal.h | 5 +++++ include/sys/_pthreadtypes.h | 5 +++++ include/sys/lock.h | 5 +++++ include/sys/stdio.h | 5 +++++ 4 files changed, 20 insertions(+) diff --git a/addons/libpthread/pthread-internal.h b/addons/libpthread/pthread-internal.h index 9a3b3b2e..c0b457cb 100644 --- a/addons/libpthread/pthread-internal.h +++ b/addons/libpthread/pthread-internal.h @@ -7,6 +7,9 @@ #ifndef __PTHREAD_INTERNAL_H #define __PTHREAD_INTERNAL_H +#include <sys/cdefs.h> +__BEGIN_DECLS + #define __PTHREAD_HAVE_ATTR_TYPE 1 #define __PTHREAD_HAVE_MUTEX_TYPE 1 #define __PTHREAD_HAVE_COND_TYPE 1 @@ -81,4 +84,6 @@ STATIC_ASSERT(__PTHREAD_BARRIER_SIZE == THD_BARRIER_SIZE) #undef STATIC_ASSERT +__END_DECLS + #endif /* !__PTHREAD_INTERNAL_H */ diff --git a/include/sys/_pthreadtypes.h b/include/sys/_pthreadtypes.h index 38291f96..67d6166d 100644 --- a/include/sys/_pthreadtypes.h +++ b/include/sys/_pthreadtypes.h @@ -8,6 +8,9 @@ #ifndef __SYS_PTHREADTYPES_H #define __SYS_PTHREADTYPES_H +#include <sys/cdefs.h> +__BEGIN_DECLS + typedef unsigned long int pthread_t; typedef struct pthread_mutexattr_t { @@ -100,4 +103,6 @@ typedef union pthread_barrier_t { #undef __PTHREAD_BARRIER_SIZE #endif /* !__PTHREAD_HAVE_BARRIER_TYPE */ +__END_DECLS + #endif /* !__SYS_PTHREADTYPES_H */ diff --git a/include/sys/lock.h b/include/sys/lock.h index eec60041..66529899 100644 --- a/include/sys/lock.h +++ b/include/sys/lock.h @@ -19,6 +19,9 @@ #ifndef __SYS_LOCK_H__ #define __SYS_LOCK_H__ +#include <sys/cdefs.h> +__BEGIN_DECLS + /** \cond */ typedef struct { @@ -63,4 +66,6 @@ void __newlib_lock_release_recursive(__newlib_recursive_lock_t*); /** \endcond */ +__END_DECLS + #endif /* __SYS_LOCK_H__ */ diff --git a/include/sys/stdio.h b/include/sys/stdio.h index c186d86c..dee114a5 100644 --- a/include/sys/stdio.h +++ b/include/sys/stdio.h @@ -8,6 +8,9 @@ #ifndef _NEWLIB_STDIO_H #define _NEWLIB_STDIO_H +#include <sys/cdefs.h> +__BEGIN_DECLS + // Cribbed from newlib sys/stdio.h /* Internal locking macros, used to protect stdio functions. In the @@ -31,4 +34,6 @@ #include <stdarg.h> #include <kos/fs.h> +__END_DECLS + #endif /* _NEWLIB_STDIO_H */ hooks/post-receive -- A pseudo Operating System for the Dreamcast. |