Statistics
| Branch: | Revision:

iof-bird-daemon / sysdep / config.h @ ea3582a6

History | View | Annotate | Download (1.04 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
#ifndef MACROS_ONLY
16

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

    
27
#endif
28

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

    
37
#define CPU_NEEDS_ALIGN_WORD 2
38
#define CPU_NEEDS_ALIGN_LONG 4
39

    
40
/* Path to configuration file */
41
#define PATH_CONFIG PATH_CONFIG_DIR "/bird.conf"
42

    
43
#endif