diff --git a/common/lib/log_legacy.cpp b/common/lib/log_legacy.cpp
index 4b6e68902..fe0e3b00a 100644
--- a/common/lib/log_legacy.cpp
+++ b/common/lib/log_legacy.cpp
@@ -32,8 +32,6 @@
 
 using namespace villas;
 
-extern "C" {
-
 int log_get_width()
 {
 	return logging.getWidth();
@@ -151,6 +149,4 @@ void jerror(json_error_t *err, const char *fmt, ...)
 	pause();
 }
 
-}
-
 #pragma GCC diagnostic pop