From: Victor Julien Date: Tue, 11 Feb 2025 11:40:27 +0000 (+0100) Subject: macros: provide fallbacks for common macros X-Git-Tag: suricata-8.0.0-beta1~462 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8ba1e9896eeb0ee30ffad74fd6da8ce18ee2c0b;p=thirdparty%2Fsuricata.git macros: provide fallbacks for common macros These are set by our build-system, but some tools like cppcheck don't use that. --- diff --git a/src/suricata-common.h b/src/suricata-common.h index 51af99a023..9f6fba40f0 100644 --- a/src/suricata-common.h +++ b/src/suricata-common.h @@ -51,6 +51,13 @@ #include "autoconf.h" #endif +#ifndef REVISION +#define REVISION "undefined" +#endif +#ifndef __SCFILENAME__ +#define __SCFILENAME__ "undefined" +#endif + #ifndef CLS #warning "L1 cache line size not detected during build. Assuming 64 bytes." #define CLS 64