php_odbc.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. +----------------------------------------------------------------------+
  3. | Copyright (c) The PHP Group |
  4. +----------------------------------------------------------------------+
  5. | This source file is subject to version 3.01 of the PHP license, |
  6. | that is bundled with this package in the file LICENSE, and is |
  7. | available through the world-wide-web at the following url: |
  8. | https://www.php.net/license/3_01.txt |
  9. | If you did not receive a copy of the PHP license and are unable to |
  10. | obtain it through the world-wide-web, please send a note to |
  11. | license@php.net so we can mail you a copy immediately. |
  12. +----------------------------------------------------------------------+
  13. | Authors: Stig Sæther Bakken <ssb@php.net> |
  14. | Andreas Karajannis <Andreas.Karajannis@gmd.de> |
  15. | Kevin N. Shallow <kshallow@tampabay.rr.com> |
  16. +----------------------------------------------------------------------+
  17. */
  18. #ifndef PHP_ODBC_H
  19. #define PHP_ODBC_H
  20. #ifdef HAVE_UODBC
  21. #ifdef ZTS
  22. #include "TSRM.h"
  23. #endif
  24. extern zend_module_entry odbc_module_entry;
  25. #define odbc_module_ptr &odbc_module_entry
  26. #include "php_version.h"
  27. #define PHP_ODBC_VERSION PHP_VERSION
  28. #if defined(HAVE_DBMAKER) || defined(PHP_WIN32) || defined(HAVE_IBMDB2) || defined(HAVE_UNIXODBC) || defined(HAVE_IODBC)
  29. # define PHP_ODBC_HAVE_FETCH_HASH 1
  30. #endif
  31. /* user functions */
  32. PHP_MINIT_FUNCTION(odbc);
  33. PHP_MSHUTDOWN_FUNCTION(odbc);
  34. PHP_RINIT_FUNCTION(odbc);
  35. PHP_RSHUTDOWN_FUNCTION(odbc);
  36. PHP_MINFO_FUNCTION(odbc);
  37. #ifdef PHP_WIN32
  38. # define PHP_ODBC_API __declspec(dllexport)
  39. #elif defined(__GNUC__) && __GNUC__ >= 4
  40. # define PHP_ODBC_API __attribute__ ((visibility("default")))
  41. #else
  42. # define PHP_ODBC_API
  43. #endif
  44. #else
  45. #define odbc_module_ptr NULL
  46. #endif /* HAVE_UODBC */
  47. #define phpext_odbc_ptr odbc_module_ptr
  48. #endif /* PHP_ODBC_H */