2013-08-07 04:45:35 +08:00
|
|
|
/*
|
|
|
|
+----------------------------------------------------------------------+
|
2019-01-30 17:03:12 +08:00
|
|
|
| Copyright (c) The PHP Group |
|
2013-08-07 04:45:35 +08:00
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
| This source file is subject to version 3.01 of the PHP license, |
|
|
|
|
| that is bundled with this package in the file LICENSE, and is |
|
|
|
|
| available through the world-wide-web at the following url: |
|
2021-05-06 18:16:35 +08:00
|
|
|
| https://www.php.net/license/3_01.txt |
|
2013-08-07 04:45:35 +08:00
|
|
|
| If you did not receive a copy of the PHP license and are unable to |
|
|
|
|
| obtain it through the world-wide-web, please send a note to |
|
|
|
|
| license@php.net so we can mail you a copy immediately. |
|
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
| Author: Michael Wallner <mike@php.net> |
|
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PHP_STDINT_H
|
|
|
|
#define PHP_STDINT_H
|
|
|
|
|
2015-08-21 05:40:08 +08:00
|
|
|
/* C99 requires these for C++ to get the definitions
|
|
|
|
* of INT64_MAX and other macros used by Zend/zend_long.h
|
|
|
|
* C11 drops this requirement, so these effectively
|
|
|
|
* just backport that piece of behavior.
|
|
|
|
*
|
|
|
|
* These defines are placed here instead of
|
|
|
|
* with the include below, because sys/types
|
|
|
|
* and inttypes may include stdint themselves.
|
|
|
|
* And these definitions MUST come first.
|
|
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
|
|
# ifndef __STDC_LIMIT_MACROS
|
|
|
|
# define __STDC_LIMIT_MACROS
|
|
|
|
# endif
|
|
|
|
# ifndef __STDC_CONSTANT_MACROS
|
|
|
|
# define __STDC_CONSTANT_MACROS
|
|
|
|
# endif
|
2017-11-25 02:02:59 +08:00
|
|
|
# ifndef __STDC_FORMAT_MACROS
|
|
|
|
# define __STDC_FORMAT_MACROS
|
|
|
|
# endif
|
2015-08-21 05:40:08 +08:00
|
|
|
#endif
|
|
|
|
|
2020-04-23 02:18:19 +08:00
|
|
|
#include <inttypes.h>
|
|
|
|
#include <stdint.h>
|
2020-07-22 22:03:06 +08:00
|
|
|
|
2013-08-12 19:39:17 +08:00
|
|
|
#if defined(_MSC_VER)
|
2020-04-23 02:18:19 +08:00
|
|
|
# ifndef u_char
|
|
|
|
typedef unsigned __int8 u_char;
|
2013-08-12 19:39:17 +08:00
|
|
|
# endif
|
2020-07-22 22:03:06 +08:00
|
|
|
#endif /* !_MSC_VER */
|
2013-08-07 04:45:35 +08:00
|
|
|
|
|
|
|
#endif /* PHP_STDINT_H */
|