diff options
| author | Jani Taskinen <jani@php.net> | 2008-08-25 13:42:55 +0000 |
|---|---|---|
| committer | Jani Taskinen <jani@php.net> | 2008-08-25 13:42:55 +0000 |
| commit | 505ad55773f514a8ddc228212850f3be95a05a82 (patch) | |
| tree | 3da94be6766ccaa6c797abb71101660ac197142a /ext/standard/crypt_freesec.h | |
| parent | f1e4ae0867f1481706919c87355a3bf48b565290 (diff) | |
| download | php-git-505ad55773f514a8ddc228212850f3be95a05a82.tar.gz | |
MFH
Diffstat (limited to 'ext/standard/crypt_freesec.h')
| -rw-r--r-- | ext/standard/crypt_freesec.h | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/ext/standard/crypt_freesec.h b/ext/standard/crypt_freesec.h index 96ca7d020f..f4a63d1630 100644 --- a/ext/standard/crypt_freesec.h +++ b/ext/standard/crypt_freesec.h @@ -1,17 +1,24 @@ /* $Id$ */ + #ifndef _CRYPT_FREESEC_H #define _CRYPT_FREESEC_H +#include "php_config.h" #if PHP_WIN32 # include "win32/php_stdint.h" #else -# include "php_config.h" -# if HAVE_STDINT_H -# include <stdint.h> +# if HAVE_INTTYPES_H +# include <inttypes.h> +# elif HAVE_STDINT_H +# include <stdint.h> # endif -# ifndef HAVE_U_INT32_T - typedef uint32_t u_int32_t; +# ifndef HAVE_UINT32_T +# if SIZEOF_INT == 4 +typedef unsigned int uint32_t; +# elif SIZEOF_LONG == 4 +typedef unsigned long int uint32_t; +# endif # endif #endif @@ -19,11 +26,11 @@ struct php_crypt_extended_data { int initialized; - u_int32_t saltbits; - u_int32_t old_salt; - u_int32_t en_keysl[16], en_keysr[16]; - u_int32_t de_keysl[16], de_keysr[16]; - u_int32_t old_rawkey0, old_rawkey1; + uint32_t saltbits; + uint32_t old_salt; + uint32_t en_keysl[16], en_keysr[16]; + uint32_t de_keysl[16], de_keysr[16]; + uint32_t old_rawkey0, old_rawkey1; char output[21]; }; |
