diff --git a/include/OneClient.h b/include/OneClient.h index 4b09bae289..97e9ec6d4f 100644 --- a/include/OneClient.h +++ b/include/OneClient.h @@ -18,6 +18,7 @@ #ifndef ONECLIENT_H_ #define ONECLIENT_H_ +#ifdef __cplusplus #include #include @@ -286,8 +287,9 @@ private: extern "C" { +#endif - void c_oneStart(); + void c_oneStart(void); int c_oneDeploy(int vmid, int hid); @@ -313,7 +315,9 @@ extern "C" int c_oneVmInfo(int vmid, char* ret_info,int leng); - void c_oneFree(); + void c_oneFree(void); + +#ifdef __cplusplus } - +#endif #endif /*ONECLIENT_H_*/