commit 3dd93a7dff8c7bd29c9bbd911e824aab36d3e2f6
parent f8ea50186743d2370e81a7f41ca6db57db59d3de
Author: Yersa Nordman <yersa@finwo.nl>
Date: Mon, 23 Oct 2023 21:30:48 +0200
Removed extern C to attempt fixing winsock import
Diffstat:
2 files changed, 0 insertions(+), 16 deletions(-)
diff --git a/src/fnet.c b/src/fnet.c
@@ -1,7 +1,3 @@
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
@@ -744,7 +740,3 @@ FNET_RETURNCODE fnet_main() {
// TODO: is this really ok?
return FNET_RETURNCODE_OK;
}
-
-#ifdef __cplusplus
-} // extern "C"
-#endif
diff --git a/src/fnet.h b/src/fnet.h
@@ -1,10 +1,6 @@
#ifndef __INCLUDE_FINWO_FNET_H__
#define __INCLUDE_FINWO_FNET_H__
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#include <stdint.h>
#include "tidwall/buf.h"
@@ -82,8 +78,4 @@ FNET_RETURNCODE fnet_free(struct fnet_t *connection);
FNET_RETURNCODE fnet_tick();
FNET_RETURNCODE fnet_main();
-#ifdef __cplusplus
-}
-#endif
-
#endif // __INCLUDE_FINWO_FNET_H__