Просмотр исходного кода

cmUdpNet.h: Added extern "C" {} wrapper.

master
kevin 11 лет назад
Родитель
Сommit
7cf517ce44
1 измененных файлов: 9 добавлений и 1 удалений
  1. 9
    1
      cmUdpNet.h

+ 9
- 1
cmUdpNet.h Просмотреть файл

1
 #ifndef cmUdpNet_h
1
 #ifndef cmUdpNet_h
2
 #define cmUdpNet_h
2
 #define cmUdpNet_h
3
 
3
 
4
+#ifdef __cplusplus
5
+extern "C" {
6
+#endif
7
+
4
 /*
8
 /*
5
   A cmUdpNet is a wrapper around a single cmUdpPort. This object
9
   A cmUdpNet is a wrapper around a single cmUdpPort. This object
6
   maintains an array of remote nodes which map application defined
10
   maintains an array of remote nodes which map application defined
93
 
97
 
94
 // Return the node label associated with a node id or NULL if the id 
98
 // Return the node label associated with a node id or NULL if the id 
95
 // is not found.
99
 // is not found.
96
-const cmChar_t*   cmUdpNetNodeIdToLabel( cmUdpNetH_t h, unsigned id );
100
+const cmChar_t* cmUdpNetNodeIdToLabel( cmUdpNetH_t h, unsigned id );
97
 
101
 
98
 // Get the total count of nodes on the network.  This count includes the local node.
102
 // Get the total count of nodes on the network.  This count includes the local node.
99
 unsigned        cmUdpNetNodeCount( cmUdpNetH_t h );
103
 unsigned        cmUdpNetNodeCount( cmUdpNetH_t h );
128
 
132
 
129
 cmRC_t cmUdpNetTest( cmCtx_t* ctx, int argc, char* argv[] );
133
 cmRC_t cmUdpNetTest( cmCtx_t* ctx, int argc, char* argv[] );
130
 
134
 
135
+#ifdef __cplusplus
136
+}
137
+#endif
138
+
131
 #endif
139
 #endif

Загрузка…
Отмена
Сохранить