From: hadaq Date: Thu, 10 Mar 2005 14:53:03 +0000 (+0000) Subject: cplusplus guards added in all headers X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=0ca64cbeb3ac5ba3f82a67720c46e899ced27d08;p=daqdata.git cplusplus guards added in all headers --- diff --git a/compat/libgen.h b/compat/libgen.h index d3bd3c2..73ef46e 100644 --- a/compat/libgen.h +++ b/compat/libgen.h @@ -1,8 +1,17 @@ -/* $Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/compat/libgen.h,v 1.4 2003-11-24 13:08:33 hadaq Exp $ */ +/* $Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/compat/libgen.h,v 1.5 2005-03-10 14:53:03 hadaq Exp $ */ #ifndef OUR_LIBGEN_H #define OUR_LIBGEN_H #ifdef HAVE_LIBCOMPAT + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +} +#endif + #else #include #endif diff --git a/compat/pthread.h b/compat/pthread.h index 1d2e94c..0e709d0 100644 --- a/compat/pthread.h +++ b/compat/pthread.h @@ -13,6 +13,10 @@ LynxOS 2.5. The translation is done according to Appendix B in #include +#ifdef __cplusplus +extern "C" { +#endif + /* Detaching a Thread */ #ifdef pthread_detach #undef pthread_detach @@ -76,6 +80,10 @@ int PTHREAD_pthread_key_create(pthread_key_t *key, void (*destr_function) (void int PTHREAD_pthread_key_delete(pthread_key_t key); void *PTHREAD_pthread_getspecific(pthread_key_t key); +#ifdef __cplusplus +} +#endif + #else #include #endif diff --git a/compat/semaphore.h b/compat/semaphore.h index 8739b15..018b760 100644 --- a/compat/semaphore.h +++ b/compat/semaphore.h @@ -1,4 +1,4 @@ -/* $Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/compat/semaphore.h,v 1.4 2003-11-24 13:08:34 hadaq Exp $ */ +/* $Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/compat/semaphore.h,v 1.5 2005-03-10 14:53:03 hadaq Exp $ */ #ifndef OUR_SEMAPHORE_H #define OUR_SEMAPHORE_H @@ -6,6 +6,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + typedef int sem_t; #define sem_open SEMAPHORE_sem_open @@ -22,6 +26,10 @@ int SEMAPHORE_sem_wait(sem_t * sem); int SEMAPHORE_sem_trywait(sem_t * sem); int SEMAPHORE_sem_post(sem_t * sem); +#ifdef __cplusplus +} +#endif + #else #include #endif diff --git a/compat/stdint.h b/compat/stdint.h index e11f8e1..28b67de 100644 --- a/compat/stdint.h +++ b/compat/stdint.h @@ -1,9 +1,13 @@ -/* $Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/compat/stdint.h,v 1.4 2003-11-24 13:08:34 hadaq Exp $ */ +/* $Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/compat/stdint.h,v 1.5 2005-03-10 14:53:04 hadaq Exp $ */ #ifndef OUR_STDINT_H #define OUR_STDINT_H #ifdef HAVE_LIBCOMPAT +#ifdef __cplusplus +extern "C" { +#endif + typedef signed char int8_t; typedef short int int16_t; typedef int int32_t; @@ -12,6 +16,10 @@ typedef unsigned char uint8_t; typedef unsigned short int uint16_t; typedef unsigned int uint32_t; +#ifdef __cplusplus +} +#endif + #else #include #endif diff --git a/compat/syslog.h b/compat/syslog.h index 95193a4..bcd722b 100644 --- a/compat/syslog.h +++ b/compat/syslog.h @@ -1,4 +1,4 @@ -/* $Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/compat/syslog.h,v 1.5 2003-11-24 13:08:34 hadaq Exp $ */ +/* $Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/compat/syslog.h,v 1.6 2005-03-10 14:53:04 hadaq Exp $ */ #ifndef OUR_SYSLOG_H #define OUR_SYSLOG_H @@ -6,6 +6,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + #if !defined(LOG_PERROR) #define LOG_PERROR 0x20 /* log to stderr as well */ #endif @@ -20,6 +24,10 @@ int SYSLOG_setlogmask(int maskpri); #define closelog SYSLOG_closelog #define setlogmask SYSLOG_setlogmask +#ifdef __cplusplus +} +#endif + #else #include #endif