Statistics
| Branch: | Revision:

iof-bird-daemon / sysdep / config.h @ 2f9bcf97

History | View | Annotate | Download (1.01 KB)

1
/*
2
 *        This file contains all parameters dependent on the
3
 *        operating system and build-time configuration.
4
 */
5

    
6
#ifndef _BIRD_CONFIG_H_
7
#define _BIRD_CONFIG_H_
8

    
9
/* Include parameters determined by configure script */
10
#include "sysdep/autoconf.h"
11

    
12
/* Include OS configuration file as chosen in autoconf.h */
13
#include SYSCONF_INCLUDE
14

    
15
/* Types */
16
typedef signed INTEGER_8 s8;
17
typedef unsigned INTEGER_8 u8;
18
typedef INTEGER_16 s16;
19
typedef unsigned INTEGER_16 u16;
20
typedef INTEGER_32 s32;
21
typedef unsigned INTEGER_32 u32;
22
typedef u8 byte;
23
typedef u16 word;
24

    
25
/*
26
 * Required alignment for multi-byte accesses. We currently don't
27
 * test these values in configure script, because several CPU's
28
 * have unaligned accesses emulated by OS and they are slower
29
 * than a call to memcpy() which is, in fact, often compiled
30
 * as load/store by GCC on machines which don't require alignment.
31
 */
32

    
33
#define CPU_NEEDS_ALIGN_WORD 2
34
#define CPU_NEEDS_ALIGN_LONG 4
35

    
36
/* Path to configuration file */
37
#define PATH_CONFIG PATH_CONFIG_DIR "/bird.conf"
38

    
39
#endif