cppcheck: avoid undef macro warning
This commit is contained in:
1 parent
0cf56a5436
commit
b091bf6e8b
1 file changed
+4
@@ -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"));
|
||||
|
||||
Reference in new issue
Block a user