Home | History | Annotate | Download | only in include
      1 /*---------------------------------------------------------------------------*
      2  *  port_fileio.h  *
      3  *                                                                           *
      4  *  Copyright 2007, 2008 Nuance Communciations, Inc.                               *
      5  *                                                                           *
      6  *  Licensed under the Apache License, Version 2.0 (the 'License');          *
      7  *  you may not use this file except in compliance with the License.         *
      8  *                                                                           *
      9  *  You may obtain a copy of the License at                                  *
     10  *      http://www.apache.org/licenses/LICENSE-2.0                           *
     11  *                                                                           *
     12  *  Unless required by applicable law or agreed to in writing, software      *
     13  *  distributed under the License is distributed on an 'AS IS' BASIS,        *
     14  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
     15  *  See the License for the specific language governing permissions and      *
     16  *  limitations under the License.                                           *
     17  *                                                                           *
     18  *---------------------------------------------------------------------------*/
     19 
     20 
     21 
     22 #ifndef _PORT_FILEIO_H__
     23 #define _PORT_FILEIO_H__
     24 
     25 #ifdef TI_DSP
     26 #include <dsp_file.h>
     27 #define PORT_FILE DSP_FILE
     28 #define PORT_FOPEN dsp_fopen
     29 #define PORT_FCLOSE dsp_fclose
     30 #define PORT_FREAD_CHAR dsp_fread_char
     31 #define PORT_FREAD_INT16 dsp_fread_int16
     32 #define PORT_FGETS dsp_fgets
     33 #else
     34 #define uint16 int
     35 #include <stdio.h>
     36 #include "PFile.h"
     37 #define PORT_FILE PFile
     38 #define PORT_FOPEN pfopen
     39 #define PORT_FCLOSE pfclose
     40 #define PORT_FREAD_CHAR pfread
     41 #define PORT_FREAD_INT16 pfread
     42 #define PORT_FGETS pfgets
     43 #endif
     44 
     45 #endif /* _PORT_FILEIO_H__ */
     46