PocketSphinx  0.6
src/libpocketsphinx/posixwin32.h
00001 /* ====================================================================
00002  * Copyright (c) 1999-2001 Carnegie Mellon University.  All rights
00003  * reserved.
00004  *
00005  * Redistribution and use in source and binary forms, with or without
00006  * modification, are permitted provided that the following conditions
00007  * are met:
00008  *
00009  * 1. Redistributions of source code must retain the above copyright
00010  *    notice, this list of conditions and the following disclaimer. 
00011  *
00012  * 2. Redistributions in binary form must reproduce the above copyright
00013  *    notice, this list of conditions and the following disclaimer in
00014  *    the documentation and/or other materials provided with the
00015  *    distribution.
00016  *
00017  *
00018  * THIS SOFTWARE IS PROVIDED BY CARNEGIE MELLON UNIVERSITY ``AS IS'' AND 
00019  * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 
00020  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
00021  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY
00022  * NOR ITS EMPLOYEES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
00023  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 
00024  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
00025  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 
00026  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 
00027  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 
00028  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00029  *
00030  * ====================================================================
00031  *
00032  */
00033 
00034 /*
00035  * posixwin32.h -- Containing PC win32 specific mappings to Unix names.
00036  * 
00037  * **********************************************
00038  * CMU ARPA Speech Project
00039  *
00040  * Copyright (c) 1996 Carnegie Mellon University.
00041  * ALL RIGHTS RESERVED.
00042  * **********************************************
00043  */
00044 
00045 
00046 #ifndef __S2_POSIXWIN32_H__
00047 #define __S2_POSIXWIN32_H__     1
00048 
00049 
00050 #if ((defined(WIN32) || defined(_WIN32_WCE)) && !defined(__CYGWIN__) && !defined(GNUWINCE))
00051 typedef char * caddr_t;
00052 typedef unsigned long u_long;
00053 typedef unsigned int u_int;
00054 typedef unsigned short u_short;
00055 typedef unsigned short u_int16;
00056 typedef unsigned char u_char;
00057 typedef float float32;
00058 #define NDEBUG 1
00059 #define M_PI 3.1415926535897932385E0
00060 #define popen _popen
00061 #define pclose _pclose
00062 #ifdef FILENAME_MAX
00063 #define MAXPATHLEN FILENAME_MAX
00064 #else
00065 #define MAXPATHLEN 512 /* An arbitrary value for WinCE */
00066 #endif
00067 #endif
00068 
00069 
00070 #endif