|
17 | 17 | #ifndef PDO_FIREBIRD_UTILS_H |
18 | 18 | #define PDO_FIREBIRD_UTILS_H |
19 | 19 |
|
20 | | -#if FB_API_VER >= 40 |
21 | | - |
22 | | -#include <ibase.h> |
23 | | -#include "php_ibase_includes.h" |
24 | | - |
25 | 20 | #ifdef __cplusplus |
26 | 21 | extern "C" { |
27 | 22 | #endif |
28 | 23 |
|
| 24 | + |
| 25 | +#if FB_API_VER >= 30 |
| 26 | + |
| 27 | +#include <ibase.h> |
| 28 | +#include "php_ibase_includes.h" |
| 29 | + |
29 | 30 | unsigned fbu_get_client_version(void *master_ptr); |
30 | | -ISC_TIME fbu_encode_time(void *master_ptr, unsigned hours, unsigned minutes, unsigned seconds, unsigned fractions); |
| 31 | +ISC_TIME fbu_encode_time(void *master_ptr, unsigned hours, unsigned minutes, |
| 32 | + unsigned seconds, unsigned fractions); |
31 | 33 | ISC_DATE fbu_encode_date(void *master_ptr, unsigned year, unsigned month, unsigned day); |
32 | 34 |
|
| 35 | +#endif // FB_API_VER >= 30 |
| 36 | + |
| 37 | + |
| 38 | +#if FB_API_VER >= 40 |
33 | 39 | void fbu_decode_time_tz(void *master_ptr, const ISC_TIME_TZ* timeTz, unsigned* hours, unsigned* minutes, unsigned* seconds, unsigned* fractions, |
34 | 40 | unsigned timeZoneBufferLength, char* timeZoneBuffer); |
35 | | - |
36 | 41 | void fbu_decode_timestamp_tz(void *master_ptr, const ISC_TIMESTAMP_TZ* timestampTz, |
37 | 42 | unsigned* year, unsigned* month, unsigned* day, |
38 | 43 | unsigned* hours, unsigned* minutes, unsigned* seconds, unsigned* fractions, |
39 | 44 | unsigned timeZoneBufferLength, char* timeZoneBuffer); |
| 45 | +int fbu_insert_field_info(void *master_ptr, ISC_STATUS* st, int is_outvar, int num, |
| 46 | + zval *into_array, void *statement_ptr); |
| 47 | +int fbu_insert_aliases(void *master_ptr, ISC_STATUS* st, ibase_query *ib_query, |
| 48 | + void *statement_ptr); |
| 49 | + |
| 50 | +#endif // FB_API_VER >= 30 |
40 | 51 |
|
41 | | -int fbu_insert_aliases(void *master_ptr, ISC_STATUS* st, ibase_query *ib_query, void *statement_ptr); |
42 | | -int fbu_insert_field_info(void *master_ptr, ISC_STATUS* st, int is_outvar, int num, zval *into_array, void *statement_ptr); |
43 | 52 |
|
44 | 53 | #ifdef __cplusplus |
45 | 54 | } |
46 | 55 | #endif |
47 | 56 |
|
48 | | -#endif // FB_API_VER >= 40 |
49 | | - |
50 | 57 | #endif /* PDO_FIREBIRD_UTILS_H */ |
0 commit comments