From 4ab3a29bb5f58504963d18f47a191ef8c0dc9555 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 21 Jun 2007 15:32:37 +0000 Subject: [PATCH] 2007-06-21 Joel Sherrill * libnetworking/rtems/mkrootfs.h, libnetworking/rtems/rtems_bsdnet.h, libnetworking/rtems/rtems_bsdnet_internal.h: Add extern __cplusplus. --- cpukit/ChangeLog | 5 +++++ cpukit/libnetworking/rtems/mkrootfs.h | 8 ++++++++ cpukit/libnetworking/rtems/rtems_bsdnet.h | 8 ++++++++ cpukit/libnetworking/rtems/rtems_bsdnet_internal.h | 8 ++++++++ 4 files changed, 29 insertions(+) diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 537130b340..ff44b0d7a2 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,8 @@ +2007-06-21 Joel Sherrill + + * libnetworking/rtems/mkrootfs.h, libnetworking/rtems/rtems_bsdnet.h, + libnetworking/rtems/rtems_bsdnet_internal.h: Add extern __cplusplus. + 2007-06-20 Joel Sherrill * sapi/include/confdefs.h: Do not instantiate initialization diff --git a/cpukit/libnetworking/rtems/mkrootfs.h b/cpukit/libnetworking/rtems/mkrootfs.h index a0e9cbb0fc..ce07900f2c 100644 --- a/cpukit/libnetworking/rtems/mkrootfs.h +++ b/cpukit/libnetworking/rtems/mkrootfs.h @@ -24,6 +24,10 @@ #ifndef _RTEMS_MKROOTFS_H #define _RTEMS_MKROOTFS_H +#ifdef __cplusplus +extern "C" { +#endif + #include /* @@ -62,4 +66,8 @@ rtems_rootfs_append_host_rec (unsigned long cip, int rtems_create_root_fs (); +#ifdef __cplusplus +} +#endif + #endif diff --git a/cpukit/libnetworking/rtems/rtems_bsdnet.h b/cpukit/libnetworking/rtems/rtems_bsdnet.h index 059e6be993..0ad1a5f9e2 100644 --- a/cpukit/libnetworking/rtems/rtems_bsdnet.h +++ b/cpukit/libnetworking/rtems/rtems_bsdnet.h @@ -9,6 +9,10 @@ #ifndef _RTEMS_BSDNET_H #define _RTEMS_BSDNET_H +#ifdef __cplusplus +extern "C" { +#endif + #include /* @@ -276,4 +280,8 @@ void* rtems_bsdnet_malloc_mbuf(size_t size, int type); #define MBUF_MALLOC_MCLREFCNT (1) #define MBUF_MALLOC_MBUF (2) +#ifdef __cplusplus +} +#endif + #endif /* _RTEMS_BSDNET_H */ diff --git a/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h b/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h index 9068113918..c57688506f 100644 --- a/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h +++ b/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h @@ -12,6 +12,10 @@ #ifndef _RTEMS_RTEMS_BSDNET_INTERNAL_H #define _RTEMS_RTEMS_BSDNET_INTERNAL_H +#ifdef __cplusplus +extern "C" { +#endif + #include typedef unsigned int vm_offset_t; @@ -196,4 +200,8 @@ int ioctl (int, ioctl_command_t, ...); # error "Network event conflict" #endif +#ifdef __cplusplus +} +#endif + #endif /* _RTEMS_RTEMS_BSDNET_INTERNAL_H */