diff --git a/src/plugins.c b/src/plugins.c index 43d70c63b..2ea509b25 100644 --- a/src/plugins.c +++ b/src/plugins.c @@ -494,6 +494,11 @@ lyplg_add(const char *pathname) LOGERR(NULL, LY_EINVAL, "Plugins are not supported in statically built library."); return LY_EINVAL; +#elif defined (_WIN32) + (void)pathname; + + LOGERR(NULL, LY_EINVAL, "Plugins are not (yet) supported on Windows."); + return LY_EINVAL; #else LY_ERR ret = LY_SUCCESS; diff --git a/tests/utests/CMakeLists.txt b/tests/utests/CMakeLists.txt index b2f06f4de..f67de0e34 100644 --- a/tests/utests/CMakeLists.txt +++ b/tests/utests/CMakeLists.txt @@ -46,7 +46,9 @@ ly_add_utest(NAME set SOURCES basic/test_set.c) ly_add_utest(NAME hash_table SOURCES basic/test_hash_table.c) ly_add_utest(NAME inout SOURCES basic/test_inout.c) ly_add_utest(NAME context SOURCES basic/test_context.c) +if(NOT WIN32) ly_add_utest(NAME plugins SOURCES basic/test_plugins.c) +endif() ly_add_utest(NAME xml SOURCES basic/test_xml.c) ly_add_utest(NAME json SOURCES basic/test_json.c) ly_add_utest(NAME xpath SOURCES basic/test_xpath.c)