Merge pull request #13 from philburk/fixrom
[pforth] / csrc / pf_inc1.h
CommitLineData
bb6b2dcd 1/* @(#) pf_unix.h 98/01/28 1.4 */\r
2#ifndef _pf_embedded_h\r
3#define _pf_embedded_h\r
4\r
5/***************************************************************\r
6** Embedded System include file for PForth, a Forth based on 'C'\r
7**\r
8** Author: Phil Burk\r
9** Copyright 1994 3DO, Phil Burk, Larry Polansky, David Rosenboom\r
10**\r
11** The pForth software code is dedicated to the public domain,\r
12** and any third party may reproduce, distribute and modify\r
13** the pForth software code or any derivative works thereof\r
14** without any compensation or license. The pForth software\r
15** code is provided on an "as is" basis without any warranty\r
16** of any kind, including, without limitation, the implied\r
17** warranties of merchantability and fitness for a particular\r
18** purpose and their equivalents under the laws of any jurisdiction.\r
19**\r
20***************************************************************/\r
21\r
22#ifndef PF_NO_CLIB\r
23 #include <string.h> /* Needed for strlen(), memcpy(), and memset(). */\r
24 #include <stdlib.h> /* Needed for exit(). */\r
25#endif\r
26\r
27#ifdef PF_NO_STDIO\r
28 #define NULL ((void *) 0)\r
29 #define EOF (-1)\r
30#else\r
31 #include <stdio.h>\r
32#endif\r
33\r
34#ifdef PF_SUPPORT_FP\r
35 #include <math.h>\r
36\r
37 #ifndef PF_USER_FP\r
38 #include "pf_float.h"\r
39 #else\r
40 #include PF_USER_FP\r
41 #endif\r
42#endif\r
43\r
44#endif /* _pf_embedded_h */\r