[sr-dev] [kamailio/kamailio] [Feature Request] Fix Python 2 & 3 build warnings (#1748)

Daniel-Constantin Mierla notifications at github.com
Wed Dec 12 10:57:12 CET 2018


@amessina - I see that you can get the version numbers via defines, for example header files for python 3.5.3 has the following defines:

```
  #define PY_MAJOR_VERSION    3
  #define PY_MINOR_VERSION    5
  #define PY_MICRO_VERSION    3
```
So you can have:

```
#if PY_MAJOR_VERSION >= 3 && PY_MINOR_VERSION >= 7
...
#endif 
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1748#issuecomment-446529168
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20181212/fe66ca7b/attachment.html>


More information about the sr-dev mailing list