diff options
author | Roy Marples <roy@marples.name> | 2008-03-28 11:06:47 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-03-28 11:06:47 +0000 |
commit | b418f2e471f743b9655847970b13e37b30423c6e (patch) | |
tree | 7b2ee42c63af8a815c28d4c6e1fb041d37ef0564 /src | |
parent | ee4e861796ad9b19acb45c576ed181ce2fdfebf5 (diff) |
Allow our headers to be included by C++ programs easily.
Diffstat (limited to 'src')
-rw-r--r-- | src/libeinfo/einfo.h | 3 | ||||
-rw-r--r-- | src/librc/rc.h.in | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/libeinfo/einfo.h b/src/libeinfo/einfo.h index 63ee5e5a..3934b582 100644 --- a/src/libeinfo/einfo.h +++ b/src/libeinfo/einfo.h @@ -51,6 +51,8 @@ # endif #endif +__BEGIN_DECLS + /*! @brief Color types to use */ typedef enum { @@ -141,4 +143,5 @@ void eoutdentv(void); /*! @brief Prefix each einfo line with something */ void eprefix(const char * __EINFO_RESTRICT); +__END_DECLS #endif diff --git a/src/librc/rc.h.in b/src/librc/rc.h.in index 7de69ae9..ede3fc61 100644 --- a/src/librc/rc.h.in +++ b/src/librc/rc.h.in @@ -32,6 +32,8 @@ #include <stdbool.h> #include <stdio.h> +__BEGIN_DECLS + #define RC_SYSCONFDIR "@SYSCONFDIR@" #define RC_LIBDIR "@PREFIX@/@LIB@/rc" #define RC_SVCDIR RC_LIBDIR "/init.d" @@ -462,4 +464,5 @@ typedef LIST_HEAD(rc_pidlist, rc_pid) RC_PIDLIST; * @return NULL terminated list of pids */ RC_PIDLIST *rc_find_pids(const char *const *, const char *, uid_t, pid_t); +__END_DECLS #endif |