Skip to content

Commit 4dd7f4e

Browse files
author
Ard Biesheuvel
committed
Added export macros
1 parent 3ae2490 commit 4dd7f4e

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

ibase_query.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1279,7 +1279,7 @@ PHP_FUNCTION(ibase_num_rows)
12791279
#endif
12801280
/* }}} */
12811281

1282-
static int _php_ibase_var_zval(zval *val, void *data, int type, int len, /* {{{ */
1282+
FB_API int _php_ibase_var_zval(zval *val, void *data, int type, int len, /* {{{ */
12831283
int scale, int flag TSRMLS_DC)
12841284
{
12851285
static ISC_INT64 const scales[] = { 1, 10, 100, 1000, 10000, 100000, 1000000, 100000000, 1000000000,

php_interbase.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,18 @@
2323
#ifndef PHP_INTERBASE_H
2424
#define PHP_INTERBASE_H
2525

26+
#ifdef PHP_WIN32
27+
# ifdef INTERBASE_EXPORTS
28+
# define FB_API __declspec(dllexport)
29+
# elif defined(COMPILE_DL_INTERBASE)
30+
# define FB_API __declspec(dllimport)
31+
# else
32+
# define FB_API /* nothing special */
33+
# endif
34+
#else
35+
# define INTERBASE_API /* nothing special */
36+
#endif
37+
2638
extern zend_module_entry ibase_module_entry;
2739
#define phpext_interbase_ptr &ibase_module_entry
2840

@@ -49,6 +61,7 @@ PHP_FUNCTION(ibase_free_query);
4961
PHP_FUNCTION(ibase_timefmt);
5062

5163
PHP_FUNCTION(ibase_gen_id);
64+
PHP_FUNCTION(ibase_insert_id);
5265
PHP_FUNCTION(ibase_num_fields);
5366
PHP_FUNCTION(ibase_num_params);
5467
#if abies_0
@@ -93,6 +106,8 @@ PHP_FUNCTION(ibase_wait_event);
93106
PHP_FUNCTION(ibase_set_event_handler);
94107
PHP_FUNCTION(ibase_free_event_handler);
95108

109+
FB_API int php_ibase_var_zval(zval *, void *, int, int, int, int TSRMLS_DC);
110+
96111
#else
97112

98113
#define phpext_interbase_ptr NULL

0 commit comments

Comments
 (0)