compatibility

This commit is contained in:
Michael Davidsaver
2013-12-10 20:45:53 -05:00
parent bfbe6c4910
commit c2e2949ce4
2 changed files with 9 additions and 1 deletions

View File

@ -240,7 +240,9 @@ PyMODINIT_FUNC init_dbconstants(void)
/* standard macros from epicsVersion.h */
PyModule_AddStringMacro(mod, EPICS_VERSION_STRING);
#ifdef EPICS_DEV_SNAPSHOT
PyModule_AddStringMacro(mod, EPICS_DEV_SNAPSHOT);
#endif
PyModule_AddStringMacro(mod, EPICS_SITE_VERSION);
PyModule_AddIntMacro(mod, EPICS_VERSION);
PyModule_AddIntMacro(mod, EPICS_REVISION);
@ -258,7 +260,11 @@ PyMODINIT_FUNC init_dbconstants(void)
(int)EPICS_MODIFICATION,
(int)EPICS_PATCH_LEVEL,
EPICS_SITE_VERSION,
#ifdef EPICS_DEV_SNAPSHOT
EPICS_DEV_SNAPSHOT);
#else
"");
#endif
if(vertup)
PyModule_AddObject(mod, "epicsver", vertup);
Py_XDECREF(vertup);

View File

@ -258,9 +258,11 @@ PyMODINIT_FUNC init_inotifyy(void)
PyModule_AddIntMacro(mod, IN_ALL_EVENTS);
PyModule_AddIntMacro(mod, IN_EXCL_UNLINK);
PyModule_AddIntMacro(mod, IN_ONESHOT);
/* added in glibc 2.5 */
#ifdef IN_EXCL_UNLINK
PyModule_AddIntMacro(mod, IN_EXCL_UNLINK);
#endif
#ifdef IN_DONT_FOLLOW
PyModule_AddIntMacro(mod, IN_DONT_FOLLOW);
#endif