zend_config.w32.h 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /*
  2. +----------------------------------------------------------------------+
  3. | Zend Engine |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 1998-2018 Zend Technologies Ltd. (http://www.zend.com) |
  6. +----------------------------------------------------------------------+
  7. | This source file is subject to version 2.00 of the Zend license, |
  8. | that is bundled with this package in the file LICENSE, and is |
  9. | available through the world-wide-web at the following url: |
  10. | http://www.zend.com/license/2_00.txt. |
  11. | If you did not receive a copy of the Zend license and are unable to |
  12. | obtain it through the world-wide-web, please send a note to |
  13. | license@zend.com so we can mail you a copy immediately. |
  14. +----------------------------------------------------------------------+
  15. | Authors: Andi Gutmans <andi@php.net> |
  16. | Zeev Suraski <zeev@php.net> |
  17. +----------------------------------------------------------------------+
  18. */
  19. #ifndef ZEND_CONFIG_W32_H
  20. #define ZEND_CONFIG_W32_H
  21. #include <../main/config.w32.h>
  22. #define _CRTDBG_MAP_ALLOC
  23. #include <malloc.h>
  24. #include <stdlib.h>
  25. #include <crtdbg.h>
  26. #include <string.h>
  27. #ifndef ZEND_INCLUDE_FULL_WINDOWS_HEADERS
  28. #define WIN32_LEAN_AND_MEAN
  29. #endif
  30. #include <winsock2.h>
  31. #include <windows.h>
  32. #include <float.h>
  33. typedef unsigned long ulong;
  34. typedef unsigned int uint;
  35. #define HAVE_STDIOSTR_H 1
  36. #define HAVE_CLASS_ISTDIOSTREAM
  37. #define istdiostream stdiostream
  38. #if _MSC_VER < 1900
  39. #define snprintf _snprintf
  40. #endif
  41. #define strcasecmp(s1, s2) _stricmp(s1, s2)
  42. #define strncasecmp(s1, s2, n) _strnicmp(s1, s2, n)
  43. #define zend_isinf(a) ((_fpclass(a) == _FPCLASS_PINF) || (_fpclass(a) == _FPCLASS_NINF))
  44. #define zend_finite(x) _finite(x)
  45. #define zend_isnan(x) _isnan(x)
  46. #define zend_sprintf sprintf
  47. #ifndef __cplusplus
  48. /* This will cause the compilation process to be MUCH longer, but will generate
  49. * a much quicker PHP binary
  50. */
  51. #ifdef ZEND_WIN32_FORCE_INLINE
  52. # undef inline
  53. # define inline __forceinline
  54. #endif
  55. #endif
  56. #ifdef LIBZEND_EXPORTS
  57. # define ZEND_API __declspec(dllexport)
  58. #else
  59. # define ZEND_API __declspec(dllimport)
  60. #endif
  61. #define ZEND_DLEXPORT __declspec(dllexport)
  62. #define ZEND_DLIMPORT __declspec(dllimport)
  63. #endif /* ZEND_CONFIG_W32_H */
  64. /*
  65. * Local variables:
  66. * tab-width: 4
  67. * c-basic-offset: 4
  68. * indent-tabs-mode: t
  69. * End:
  70. * vim600: sw=4 ts=4 fdm=marker
  71. * vim<600: sw=4 ts=4
  72. */