log BUGFIX added missing LIBYANG_API_DECL
diff --git a/src/log.h b/src/log.h
index 0d4a5d8..0467f21 100644
--- a/src/log.h
+++ b/src/log.h
@@ -170,7 +170,7 @@
  * @param[in] dbg_groups Bitfield of enabled debug message groups (see @ref dbggroup).
  * @return Previous options bitfield.
  */
-uint32_t ly_log_dbg_groups(uint32_t dbg_groups);
+LIBYANG_API_DECL uint32_t ly_log_dbg_groups(uint32_t dbg_groups);
 
 #endif