Merge in SNORT/snort3 from ~OSHUMEIK/snort3:jsn_flex_naming to master
Squashed commit of the following:
commit
307587f13d592061cfd1bc38f36ab2e9cf5ce73c
Author: Oleksii Shumeiko <oshumeik@cisco.com>
Date: Mon Jun 17 15:11:42 2024 +0300
js_norm: fix prerequisites for FlexLexer includes
#include "main/snort_types.h"
+// This follows the prefix from js_tokenizer.l
+#undef yyFlexLexer
+#define yyFlexLexer jsFlexLexer
#include <FlexLexer.h>
#include "helpers/streambuf.h"
#ifndef JS_PDF_NORM_H
#define JS_PDF_NORM_H
-#include <FlexLexer.h>
#include <cstring>
+// This follows the prefix from pdf_tokenizer.l
+#undef yyFlexLexer
+#define yyFlexLexer pdfFlexLexer
+#include <FlexLexer.h>
+
#include "helpers/streambuf.h"
#include "js_norm/js_norm.h"
#include "js_norm/pdf_tokenizer.h"