aboutsummaryrefslogtreecommitdiffstats
path: root/stdinc.h
blob: 70d2fe3487c1c346a3e3ebcdb827e74a4ec9c49b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/* stdinc.h */
/*****************************************************************************/
/* AS-Portierung                                                             */
/*                                                                           */
/* globaler Einzug immer benoetigter includes                                */
/*                                                                           */
/* Historie: 21. 5.1996 min/max                                              */
/*           11. 5.1997 DOS-Anpassungen                                      */
/*                                                                           */
/*****************************************************************************/

#include <stdio.h>
#ifndef __MUNIX__
#include <stdlib.h>
#endif
#if !defined ( __MSDOS__ ) && !defined( __IBMC__ )
#include <unistd.h>
#endif
#include <math.h>
#include <errno.h>
#include <sys/types.h>
#ifdef __MSDOS__
#include <alloc.h>
#else
#include <memory.h>
#ifndef __FreeBSD__
#include <malloc.h>
#endif
#endif

#include "pascstyle.h"
#include "datatypes.h"
#include "chardefs.h"

#ifndef min
#define min(a,b) ((a<b)?(a):(b))
#endif
#ifndef max
#define max(a,b) ((a>b)?(a):(b))
#endif

#ifndef M_PI
#define M_PI 3.1415926535897932385E0
#endif