diff options
author | Ard Biesheuvel <abies@php.net> | 2004-06-12 02:49:47 +0000 |
---|---|---|
committer | Ard Biesheuvel <abies@php.net> | 2004-06-12 02:49:47 +0000 |
commit | 39a690321afe009752585e3ed42c169518df296f (patch) | |
tree | ad9103ceed93b31f28e9c894561631e9473f862c /ext/interbase | |
parent | 50ac5db2b410de9b9faadaed786929d48b189571 (diff) | |
download | php-git-39a690321afe009752585e3ed42c169518df296f.tar.gz |
Added export macros
Diffstat (limited to 'ext/interbase')
-rw-r--r-- | ext/interbase/ibase_query.c | 2 | ||||
-rw-r--r-- | ext/interbase/php_interbase.h | 15 |
2 files changed, 16 insertions, 1 deletions
diff --git a/ext/interbase/ibase_query.c b/ext/interbase/ibase_query.c index 09bbb1313c..36cae02f87 100644 --- a/ext/interbase/ibase_query.c +++ b/ext/interbase/ibase_query.c @@ -1279,7 +1279,7 @@ PHP_FUNCTION(ibase_num_rows) #endif /* }}} */ -static int _php_ibase_var_zval(zval *val, void *data, int type, int len, /* {{{ */ +FB_API int _php_ibase_var_zval(zval *val, void *data, int type, int len, /* {{{ */ int scale, int flag TSRMLS_DC) { static ISC_INT64 const scales[] = { 1, 10, 100, 1000, 10000, 100000, 1000000, 100000000, 1000000000, diff --git a/ext/interbase/php_interbase.h b/ext/interbase/php_interbase.h index 1469b2a4bd..b314c3a896 100644 --- a/ext/interbase/php_interbase.h +++ b/ext/interbase/php_interbase.h @@ -23,6 +23,18 @@ #ifndef PHP_INTERBASE_H #define PHP_INTERBASE_H +#ifdef PHP_WIN32 +# ifdef INTERBASE_EXPORTS +# define FB_API __declspec(dllexport) +# elif defined(COMPILE_DL_INTERBASE) +# define FB_API __declspec(dllimport) +# else +# define FB_API /* nothing special */ +# endif +#else +# define INTERBASE_API /* nothing special */ +#endif + extern zend_module_entry ibase_module_entry; #define phpext_interbase_ptr &ibase_module_entry @@ -49,6 +61,7 @@ PHP_FUNCTION(ibase_free_query); PHP_FUNCTION(ibase_timefmt); PHP_FUNCTION(ibase_gen_id); +PHP_FUNCTION(ibase_insert_id); PHP_FUNCTION(ibase_num_fields); PHP_FUNCTION(ibase_num_params); #if abies_0 @@ -93,6 +106,8 @@ PHP_FUNCTION(ibase_wait_event); PHP_FUNCTION(ibase_set_event_handler); PHP_FUNCTION(ibase_free_event_handler); +FB_API int php_ibase_var_zval(zval *, void *, int, int, int, int TSRMLS_DC); + #else #define phpext_interbase_ptr NULL |