windows call plugins init on win32 plat
authorAndy Green <andy@warmcat.com>
Wed, 25 May 2016 11:42:35 +0000 (19:42 +0800)
committerAndy Green <andy@warmcat.com>
Wed, 25 May 2016 11:43:02 +0000 (19:43 +0800)
Signed-off-by: Andy Green <andy@warmcat.com>
lib/lws-plat-win.c

index 842423b..be07ac6 100644 (file)
@@ -608,5 +608,10 @@ lws_plat_init(struct lws_context *context,
        context->fops.read      = _lws_plat_file_read;
        context->fops.write     = _lws_plat_file_write;
 
+#ifdef LWS_WITH_PLUGINS
+       if (info->plugin_dirs)
+               lws_plat_plugins_init(context, info->plugin_dirs);
+#endif
+
        return 0;
 }