diff options
author | Björn Jacke <bj@sernet.de> | 2012-07-05 21:48:29 +0200 |
---|---|---|
committer | Björn Jacke <bj@sernet.de> | 2012-07-05 22:00:52 +0200 |
commit | a79496d90cad1695c7b79244337984faa8630c2b (patch) | |
tree | b4e158d0d13aafbd32a684a24df95d0a38007fa8 /lib/addns | |
parent | 4b83d61e7da7b417c3486f61b9f5e65b9df3fa88 (diff) | |
download | samba-a79496d90cad1695c7b79244337984faa8630c2b.tar.gz samba-a79496d90cad1695c7b79244337984faa8630c2b.tar.bz2 samba-a79496d90cad1695c7b79244337984faa8630c2b.zip |
lib/addns: remove defines we don't need or have for sure via libreplace
Diffstat (limited to 'lib/addns')
-rw-r--r-- | lib/addns/dns.h | 84 |
1 files changed, 0 insertions, 84 deletions
diff --git a/lib/addns/dns.h b/lib/addns/dns.h index 22299c525a..bf2ade387b 100644 --- a/lib/addns/dns.h +++ b/lib/addns/dns.h @@ -44,90 +44,6 @@ #include <talloc.h> -/******************************************************************* - Type definitions for int16, int32, uint16 and uint32. Needed - for Samba coding style -*******************************************************************/ - -#ifndef uint8 -# define uint8 unsigned char -#endif - -#if !defined(int16) && !defined(HAVE_INT16_FROM_RPC_RPC_H) -# if (SIZEOF_SHORT == 4) -# define int16 __ERROR___CANNOT_DETERMINE_TYPE_FOR_INT16; -# else /* SIZEOF_SHORT != 4 */ -# define int16 short -# endif /* SIZEOF_SHORT != 4 */ - /* 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) -# if (SIZEOF_SHORT == 4) -# define uint16 __ERROR___CANNOT_DETERMINE_TYPE_FOR_INT16; -# else /* SIZEOF_SHORT != 4 */ -# define uint16 unsigned short -# endif /* SIZEOF_SHORT != 4 */ -#endif - -#if !defined(int32) && !defined(HAVE_INT32_FROM_RPC_RPC_H) -# if (SIZEOF_INT == 4) -# define int32 int -# elif (SIZEOF_LONG == 4) -# define int32 long -# elif (SIZEOF_SHORT == 4) -# define int32 short -# else - /* uggh - no 32 bit type?? probably a CRAY. just hope this works ... */ -# define int32 int -# endif -# 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) -# if (SIZEOF_INT == 4) -# define uint32 unsigned int -# elif (SIZEOF_LONG == 4) -# define uint32 unsigned long -# elif (SIZEOF_SHORT == 4) -# define uint32 unsigned short -# else - /* uggh - no 32 bit type?? probably a CRAY. just hope this works ... */ -# define uint32 unsigned -# endif -#endif - -/* - * check for 8 byte long long - */ - -#if !defined(uint64) -# if (SIZEOF_LONG == 8) -# define uint64 unsigned long -# elif (SIZEOF_LONG_LONG == 8) -# define uint64 unsigned long long -# endif /* don't lie. If we don't have it, then don't use it */ -#endif - -/* needed on Sun boxes */ -#ifndef INADDR_NONE -#define INADDR_NONE 0xFFFFFFFF -#endif - #include "dnserr.h" |