Declare profiling related functions in scanner.h even if YR_PROFILING_ENABLED is not defined.
@@ -30,6 +30,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef YR_SCANNER_H
#define YR_SCANNER_H
+#include <yara/filemap.h>
#include <yara/types.h>
#include <yara/utils.h>
@@ -120,13 +121,12 @@ YR_API YR_STRING* yr_scanner_last_error_string(
YR_SCANNER* scanner);
-#ifdef YR_PROFILING_ENABLED
YR_API YR_PROFILING_INFO* yr_scanner_get_profiling_info(
YR_SCANNER* scanner);
+
YR_API int yr_scanner_print_profiling_info(
YR_SCANNER* scanner);
-#endif
#endif
