time-service: Compilation for C++ compiler
Currently, on including the header file compilation issues
are coming due to linkage. Adding a wrapper to avoid compilation
issues with c++ files.
Change-Id: I0f4169e841aa7f35503b1ec2f1cd3f5a309e86d9
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__ */