Skip to content

Commit

Permalink
Make stime optional
Browse files Browse the repository at this point in the history
  • Loading branch information
sonofusion82 committed May 10, 2020
1 parent d49f44c commit af334a2
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions ftd2xx/_ftd2xx_linux.py
Expand Up @@ -1505,13 +1505,16 @@ class __locale_struct(Structure):
"""void tzset()
/usr/include/time.h:283"""
# /usr/include/time.h 294
stime = _libraries['libftd2xx.so'].stime
stime.restype = c_int
# stime(__when)
stime.argtypes = [POINTER(time_t)]
stime.__doc__ = \
"""int stime(unknown * __when)
/usr/include/time.h:294"""
try:
stime = _libraries['libftd2xx.so'].stime
stime.restype = c_int
# stime(__when)
stime.argtypes = [POINTER(time_t)]
stime.__doc__ = \
"""int stime(unknown * __when)
/usr/include/time.h:294"""
except AttributeError:
pass
# /usr/include/time.h 309
timegm = _libraries['libftd2xx.so'].timegm
timegm.restype = time_t
Expand Down

0 comments on commit af334a2

Please sign in to comment.