Merge "time-service: Compilation for C++ compiler"
diff --git a/time_genoff.h b/time_genoff.h
index e3e4447..667d7c9 100644
--- a/time_genoff.h
+++ b/time_genoff.h
@@ -29,6 +29,10 @@
#ifndef __TIME_GENOFF_H__
#define __TIME_GENOFF_H__
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*
* Time genoff base -- To be used by the time setter
* Reserved bases to be supported later.
@@ -90,4 +94,8 @@
/* API to be called for logging operations */
int time_control_operations(time_genoff_info_type *pargs);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* __TIME_GENOFF_H__ */