When build as dynamic engines, the loading functions should be defined
static.
diff --git a/engines/e_cswift.c b/engines/e_cswift.c
index f3d3628..ac49098 100644
--- a/engines/e_cswift.c
+++ b/engines/e_cswift.c
@@ -262,6 +262,7 @@
 	return 1;
 	}
 
+#ifdef OPENSSL_NO_DYNAMIC_ENGINE
 static ENGINE *engine_cswift(void)
 	{
 	ENGINE *ret = ENGINE_new();
@@ -284,6 +285,7 @@
 	ENGINE_free(toadd);
 	ERR_clear_error();
 	}
+#endif
 
 /* This is a process-global DSO handle used for loading and unloading
  * the CryptoSwift library. NB: This is only set (or unset) during an