Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/org.eclipse.etrice.runtime.c/src/common/osal/etTcpSockets.h')
-rw-r--r--runtime/org.eclipse.etrice.runtime.c/src/common/osal/etTcpSockets.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/runtime/org.eclipse.etrice.runtime.c/src/common/osal/etTcpSockets.h b/runtime/org.eclipse.etrice.runtime.c/src/common/osal/etTcpSockets.h
index 02458a406..3bd72dede 100644
--- a/runtime/org.eclipse.etrice.runtime.c/src/common/osal/etTcpSockets.h
+++ b/runtime/org.eclipse.etrice.runtime.c/src/common/osal/etTcpSockets.h
@@ -19,15 +19,14 @@
*
* \author Henrik Rentz-Reichert
*/
-#ifdef __cplusplus
-extern "C" {
-#endif
#ifndef _ETTCPSOCKETS_H_
#define _ETTCPSOCKETS_H_
#include "etDatatypes.h"
+ET_EXTERN_C_BEGIN
+
/** the maximum number of connections per server */
#define MAX_CONNECTIONS 32
@@ -177,8 +176,6 @@ etSocketError etWriteSocket(etSocketConnectionData* self, int size, const int8*
*/
etSocketError etCloseSocket(etSocketConnectionData* self);
-#endif /* _ETTCPSOCKETS_H_ */
+ET_EXTERN_C_END
-#ifdef __cplusplus
-}
-#endif
+#endif /* _ETTCPSOCKETS_H_ */

Back to the top