Moin,
the attached patch makes it possible to build C++ programs which link against
state.o and use functions declared in state.h by adding an extern "C"
directive if necessary.
It also adds an include guard to remove the burder from the client including
state.h of keeping track of possible multiple inclusion problems.
- Frerich
--
"If you fail to adjust your notion of fairness to the reality of the Universe,
you will probably not be happy." - Paratima, of http://free-dc.org fame
Index: state.h
===================================================================
RCS file: /cvsroot/distcc/src/state.h,v
retrieving revision 1.9
diff -u -3 -p -r1.9 state.h
--- state.h 23 Sep 2003 04:23:05 -0000 1.9
+++ state.h 27 Sep 2003 08:06:41 -0000
@@ -20,8 +20,15 @@
* USA
*/
+#ifndef _DISTCC_STATE_H
+#define _DISTCC_STATE_H
+
#include <stdint.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
int dcc_get_state_dir (char **p);
int dcc_open_state_file (int *p_fd);
@@ -78,3 +85,9 @@ struct dcc_history {
const char *dcc_get_state_name(enum dcc_state state);
void dcc_note_state_slot(int slot);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _DISTCC_STATE_H */
__
distcc mailing list http://distcc.samba.org/
To unsubscribe or change options:
http://lists.samba.org/cgi-bin/mailman/listinfo/distcc