Fix cppcheck issues in resource-directory dir
authorRavi Nanjundappa <nravi.n@samsung.com>
Thu, 1 Oct 2015 04:29:55 +0000 (09:59 +0530)
committerHabib Virji <habib.virji@samsung.com>
Thu, 1 Oct 2015 09:17:07 +0000 (09:17 +0000)
This patch fixes the "(error) Invalid number of character ({) when these macros
are defined: '__cplusplus'" issue reported by cppcheck tool in resource-directory dir.

Change-Id: I18efad2b11148d71cc459469eb9fb569f93332ae
Signed-off-by: Ravi Nanjundappa <nravi.n@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/3343
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
service/resource-directory/src/internal/rd_storage.h

index bbc5e48..36803d5 100644 (file)
 
 #include "octypes.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif // __cplusplus
+
 /** Stucture holding Published Resources on the Resource Directory. */
 typedef struct OCRDStorePublishResources
 {