Allow our headers to be included by C++ programs easily.

This commit is contained in:
Roy Marples 2008-03-28 11:06:47 +00:00
parent ee4e861796
commit b418f2e471
2 changed files with 6 additions and 0 deletions

View File

@ -51,6 +51,8 @@
# endif # endif
#endif #endif
__BEGIN_DECLS
/*! @brief Color types to use */ /*! @brief Color types to use */
typedef enum typedef enum
{ {
@ -141,4 +143,5 @@ void eoutdentv(void);
/*! @brief Prefix each einfo line with something */ /*! @brief Prefix each einfo line with something */
void eprefix(const char * __EINFO_RESTRICT); void eprefix(const char * __EINFO_RESTRICT);
__END_DECLS
#endif #endif

View File

@ -32,6 +32,8 @@
#include <stdbool.h> #include <stdbool.h>
#include <stdio.h> #include <stdio.h>
__BEGIN_DECLS
#define RC_SYSCONFDIR "@SYSCONFDIR@" #define RC_SYSCONFDIR "@SYSCONFDIR@"
#define RC_LIBDIR "@PREFIX@/@LIB@/rc" #define RC_LIBDIR "@PREFIX@/@LIB@/rc"
#define RC_SVCDIR RC_LIBDIR "/init.d" #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 */ * @return NULL terminated list of pids */
RC_PIDLIST *rc_find_pids(const char *const *, const char *, uid_t, pid_t); RC_PIDLIST *rc_find_pids(const char *const *, const char *, uid_t, pid_t);
__END_DECLS
#endif #endif