mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-31 06:15:55 +00:00
Conditionalize bit types definition.
This commit is contained in:
@@ -20,16 +20,6 @@
|
||||
* http://www.isc.org for more information.
|
||||
*/
|
||||
|
||||
/* Define the basic integer types... */
|
||||
typedef char int8_t;
|
||||
typedef short int16_t;
|
||||
typedef int int32_t;
|
||||
|
||||
typedef unsigned char u_int8_t;
|
||||
typedef unsigned short u_int16_t;
|
||||
typedef unsigned int u_int32_t;
|
||||
typedef unsigned long u_int64_t;
|
||||
|
||||
#include <syslog.h>
|
||||
#include <sys/types.h>
|
||||
#include <string.h>
|
||||
@@ -48,6 +38,18 @@ extern int h_errno;
|
||||
#include <net/if.h>
|
||||
#include <net/if_dl.h>
|
||||
|
||||
/* Define the basic integer types... */
|
||||
#if !defined (__BIT_TYPES_DEFINED__)
|
||||
typedef char int8_t;
|
||||
typedef short int16_t;
|
||||
typedef int int32_t;
|
||||
|
||||
typedef unsigned char u_int8_t;
|
||||
typedef unsigned short u_int16_t;
|
||||
typedef unsigned int u_int32_t;
|
||||
typedef unsigned long u_int64_t;
|
||||
#endif
|
||||
|
||||
/* Varargs stuff... */
|
||||
#include <stdarg.h>
|
||||
#define VA_DOTDOTDOT ...
|
||||
|
Reference in New Issue
Block a user