config.h 1.01 KB
Newer Older
1
/*
2
3
 *	This file contains all parameters dependent on the
 *	operating system and build-time configuration.
4
5
6
7
8
 */

#ifndef _BIRD_CONFIG_H_
#define _BIRD_CONFIG_H_

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

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

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

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

33
34
#define CPU_NEEDS_ALIGN_WORD 2
#define CPU_NEEDS_ALIGN_LONG 4
Martin Mareš's avatar
Martin Mareš committed
35

36
37
/* Path to configuration file */
#define PATH_CONFIG PATH_CONFIG_DIR "/bird.conf"
Martin Mareš's avatar
Martin Mareš committed
38

39
#endif