Do not try to compile Python code when building other bindings

Fixes the issue reported by @dl8fcl
f7d38f92ca (commitcomment-161078321)
pull/1792/head
Daniele Forsi IU5HKX 2025-06-30 23:41:12 +02:00
rodzic ca7353abaa
commit 7acb809eef
2 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -148,6 +148,7 @@ typedef struct Amp {
AMPMETHOD1GET(get_powerstat, powerstat_t)
#ifdef SWIGPYTHON
PyObject * get_level(setting_t level)
{
value_t val;
@ -163,5 +164,5 @@ typedef struct Amp {
return PyLong_FromLong(val.i);
}
#endif
};

Wyświetl plik

@ -119,6 +119,7 @@ typedef struct Rot {
ROTMETHOD2(set_conf, hamlib_token_t, const_char_string)
#ifdef SWIGPYTHON
ROT_GET_LONG(func)
ROT_GET_LONG(ext_func)
@ -127,6 +128,7 @@ typedef struct Rot {
ROT_GET_VALUE_T(parm)
ROT_GET_VALUE_T(ext_parm)
#endif
const char *get_conf(hamlib_token_t tok) {
static char s[128] = "";