| commit 397: | b37faf12a9b8 |
| parent 396: | 8ec1efa20339 |
| branch: | default |
fix python binding (bool_t) for python 2.5
5 months ago
Changed (Δ85 bytes):
raw changeset »
python/hasard/types.py (5 lines added, 1 lines removed)
Up to file-list python/hasard/types.py:
| … | … | @@ -17,9 +17,13 @@ from ctypes import ( |
17 |
17 |
c_uint64 as uint64_t, |
18 |
18 |
|
19 |
19 |
# Other standard types |
20 |
c_bool as bool_t, |
|
21 |
20 |
c_size_t as size_t) |
22 |
21 |
|
22 |
try: |
|
23 |
from ctypes import c_bool as bool_t |
|
24 |
except ImportError: |
|
25 |
from ctypes import c_ubyte as bool_t |
|
26 |
||
23 |
27 |
# Hasard types |
24 |
28 |
hasard_tick_t = uint32_t |
25 |
29 |
hasard_p = c_void_p |
