PocketSphinx  0.6
posixwin32.h
1 /* ====================================================================
2  * Copyright (c) 1999-2001 Carnegie Mellon University. All rights
3  * reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  *
9  * 1. Redistributions of source code must retain the above copyright
10  * notice, this list of conditions and the following disclaimer.
11  *
12  * 2. Redistributions in binary form must reproduce the above copyright
13  * notice, this list of conditions and the following disclaimer in
14  * the documentation and/or other materials provided with the
15  * distribution.
16  *
17  *
18  * THIS SOFTWARE IS PROVIDED BY CARNEGIE MELLON UNIVERSITY ``AS IS'' AND
19  * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
20  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY
22  * NOR ITS EMPLOYEES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29  *
30  * ====================================================================
31  *
32  */
33 
34 /*
35  * posixwin32.h -- Containing PC win32 specific mappings to Unix names.
36  *
37  * **********************************************
38  * CMU ARPA Speech Project
39  *
40  * Copyright (c) 1996 Carnegie Mellon University.
41  * ALL RIGHTS RESERVED.
42  * **********************************************
43  */
44 
45 
46 #ifndef __S2_POSIXWIN32_H__
47 #define __S2_POSIXWIN32_H__ 1
48 
49 
50 #if ((defined(WIN32) || defined(_WIN32_WCE)) && !defined(__CYGWIN__) && !defined(GNUWINCE))
51 typedef char * caddr_t;
52 typedef unsigned long u_long;
53 typedef unsigned int u_int;
54 typedef unsigned short u_short;
55 typedef unsigned short u_int16;
56 typedef unsigned char u_char;
57 typedef float float32;
58 #define NDEBUG 1
59 #define M_PI 3.1415926535897932385E0
60 #define popen _popen
61 #define pclose _pclose
62 #ifdef FILENAME_MAX
63 #define MAXPATHLEN FILENAME_MAX
64 #else
65 #define MAXPATHLEN 512 /* An arbitrary value for WinCE */
66 #endif
67 #endif
68 
69 
70 #endif