cppcheck: avoid undef macro warning

This commit is contained in:
Philippe Teuwen
2026-02-06 16:24:29 +01:00
parent 0cf56a5436
commit b091bf6e8b
+4
View File
@@ -1731,7 +1731,11 @@ void pm3_version(bool verbose, bool oneliner) {
#else
PrintAndLogEx(NORMAL, " Native BT support......... " _YELLOW_("absent"));
#endif
#ifdef HAVE_PYTHON
#ifndef PY_VERSION
#define PY_VERSION "unknown version"
#endif
PrintAndLogEx(NORMAL, " Python script support..... " _GREEN_("present") " ( " _YELLOW_(PY_VERSION) " )");
#else
PrintAndLogEx(NORMAL, " Python script support..... " _YELLOW_("absent"));