1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

Remove [u]int[XX] defines from source3/include/includes.h

Signed-off-by: Richard Sharpe <rsharpe@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Mon May 18 05:24:22 CEST 2015 on sn-devel-104
This commit is contained in:
Richard Sharpe 2015-05-17 17:21:06 -07:00 committed by Jeremy Allison
parent d87fd39501
commit 175ae9668c

View File

@ -176,65 +176,6 @@ typedef sig_atomic_t volatile SIG_ATOMIC_T;
#define uchar unsigned char #define uchar unsigned char
#endif #endif
/*
Samba needs type definitions for int16, int32, uint16 and uint32.
Normally these are signed and unsigned 16 and 32 bit integers, but
they actually only need to be at least 16 and 32 bits
respectively. Thus if your word size is 8 bytes just defining them
as signed and unsigned int will work.
*/
#ifndef uint8
#define uint8 uint8_t
#endif
#if !defined(int16) && !defined(HAVE_INT16_FROM_RPC_RPC_H)
# define int16 int16_t
/* needed to work around compile issue on HP-UX 11.x */
# define _INT16 1
#endif
/*
* Note we duplicate the size tests in the unsigned
* case as int16 may be a typedef from rpc/rpc.h
*/
#if !defined(uint16) && !defined(HAVE_UINT16_FROM_RPC_RPC_H)
# define uint16 uint16_t
#endif
#if !defined(int32) && !defined(HAVE_INT32_FROM_RPC_RPC_H)
# define int32 int32_t
# ifndef _INT32
/* needed to work around compile issue on HP-UX 11.x */
# define _INT32 1
# endif
#endif
/*
* Note we duplicate the size tests in the unsigned
* case as int32 may be a typedef from rpc/rpc.h
*/
#if !defined(uint32) && !defined(HAVE_UINT32_FROM_RPC_RPC_H)
# define uint32 uint32_t
#endif
/*
* check for 8 byte long long
*/
#if !defined(uint64)
# define uint64 uint64_t
#endif
#if !defined(int64)
# define int64 int64_t
#endif
/* /*
* Types for devices, inodes and offsets. * Types for devices, inodes and offsets.
*/ */