Move the sources to trunk
[opencv] / apps / Hawk / CVEiCL / EiC / src / ppc403 / glue.h
1 /* glue.h -- common definitions for "glue" fucntions.\r
2  *\r
3  * Copyright (c) 1995 Cygnus Support\r
4  *\r
5  * The authors hereby grant permission to use, copy, modify, distribute,\r
6  * and license this software and its documentation for any purpose, provided\r
7  * that existing copyright notices are retained in all copies and that this\r
8  * notice is included verbatim in any distributions. No written agreement,\r
9  * license, or royalty fee is required for any of the authorized uses.\r
10  * Modifications to this software may be copyrighted by their authors\r
11  * and need not follow the licensing terms described here, provided that\r
12  * the new terms are clearly indicated on the first page of each file where\r
13  * they apply.\r
14  */\r
15 #include <_ansi.h>\r
16 \r
17 #ifndef NULL\r
18 #  define NULL 0\r
19 #endif\r
20 \r
21 /*\r
22  * support setting the errno array if it's there\r
23  */\r
24 #ifdef errno\r
25 #  define SET_ERRNO(x)  errno = x\r
26 #else\r
27 #  define SET_ERRNO(x)\r
28 #endif\r
29 \r
30 #ifdef __NO_UNDERSCORE__\r
31 #  define _end    end\r
32 #  define _exit   exit\r
33 #endif\r
34 \r
35 extern char _end[];\r
36 /* extern char _end[]; */               /* _end is set in the linker command file */\r
37 /* extern char end[]; */\r
38 \r
39 /* only one prcess support, as this is OS dependant */\r
40 #define __MYPID 1\r
41 \r
42 \r