context BUGFIX public functions need API macro
diff --git a/src/context.c b/src/context.c
index 059be61..e259983 100644
--- a/src/context.c
+++ b/src/context.c
@@ -207,7 +207,7 @@
     return result;
 }
 
-struct ly_submodule *
+API struct ly_submodule *
 ly_ctx_get_submodule(struct ly_module *module, const char *name, const char *revision, int read)
 {
     struct ly_submodule *result;