| 1234567891011121314151617181920212223242526272829303132333435363738 |
- #ifndef _TYPES_H
- #define _TYPES_H
- #ifdef HAVE_CONFIG_H
- # include "config.h"
- #endif
- /* For local console: */
- #define STDIN 0
- #define STDOUT 1
- #define STDERR 2
- /* It's used in so many places, let's put it here */
- typedef int (*Function) ();
- #if !HAVE_SOCKLEN_T
- typedef int socklen_t;
- #endif
- /* 32 bit type */
- #if (SIZEOF_INT == 4)
- typedef unsigned int u_32bit_t;
- #else
- # if (SIZEOF_LONG == 4)
- typedef unsigned long u_32bit_t;
- # else
- # include "cant/find/32bit/type"
- # endif
- #endif
- typedef unsigned short int u_16bit_t;
- typedef unsigned char u_8bit_t;
- /* IP type */
- typedef u_32bit_t IP;
- typedef u_32bit_t dword;
- #endif /* !_TYPES_H */
|