Skip to content

Commit

Permalink
Some minor include changes
Browse files Browse the repository at this point in the history
  • Loading branch information
afxgroup committed Dec 6, 2023
1 parent 82e61d2 commit d708d1a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 19 deletions.
14 changes: 2 additions & 12 deletions library/include/pthread.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,7 @@
#include <sched.h>
#include <features.h>

#ifdef __cplusplus
#ifdef __USE_AMIGAOS_NAMESPACE__
namespace AmigaOS {
#endif
extern "C" {
#endif
__BEGIN_DECLS

//
// POSIX options
Expand Down Expand Up @@ -414,11 +409,6 @@ extern void pthread_cleanup_pop(int execute);

extern int pthread_kill(pthread_t thread, int sig);

#ifdef __cplusplus
}
#ifdef __USE_AMIGAOS_NAMESPACE__
}
#endif
#endif
__END_DECLS

#endif
1 change: 0 additions & 1 deletion library/include/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#define _SIGNAL_H

#include <features.h>
#include <pthread.h>

__BEGIN_DECLS

Expand Down
20 changes: 14 additions & 6 deletions library/include/sys/cdefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,21 @@
#define __flexarr [0]

#ifdef __cplusplus
#define __BEGIN_DECLS \
extern "C" \
{
#define __END_DECLS }
#ifdef __USE_AMIGAOS_NAMESPACE__
#define __BEGIN_DECLS \
namespace AmigaOS { \
extern "C" \
{
#define __END_DECLS } }
#else
#define __BEGIN_DECLS \
extern "C" \
{
#define __END_DECLS }
#endif
#else
#define __BEGIN_DECLS
#define __END_DECLS
#define __BEGIN_DECLS
#define __END_DECLS
#endif

#ifndef __BOUNDED_POINTERS__
Expand Down

0 comments on commit d708d1a

Please sign in to comment.