From a79496d90cad1695c7b79244337984faa8630c2b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B6rn=20Jacke?= Date: Thu, 5 Jul 2012 21:48:29 +0200 Subject: [PATCH] lib/addns: remove defines we don't need or have for sure via libreplace --- lib/addns/dns.h | 84 --------------------------------------------------------- 1 file changed, 84 deletions(-) diff --git a/lib/addns/dns.h b/lib/addns/dns.h index 22299c525ae..bf2ade387b9 100644 --- a/lib/addns/dns.h +++ b/lib/addns/dns.h @@ -44,90 +44,6 @@ #include -/******************************************************************* - 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" -- 2.11.4.GIT