]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
macros: provide fallbacks for common macros
authorVictor Julien <vjulien@oisf.net>
Tue, 11 Feb 2025 11:40:27 +0000 (12:40 +0100)
committerVictor Julien <vjulien@oisf.net>
Wed, 12 Feb 2025 06:39:09 +0000 (07:39 +0100)
These are set by our build-system, but some tools like cppcheck don't use that.

src/suricata-common.h

index 51af99a023e88b5b246b884e741fd20c3d5dd77a..9f6fba40f0f5f2e4e557d12e04fa9d9f2f06607c 100644 (file)
 #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