Home | History | Annotate | Download | only in basic_op
      1 /*
      2  ** Copyright 2003-2010, VisualOn, Inc.
      3  **
      4  ** Licensed under the Apache License, Version 2.0 (the "License");
      5  ** you may not use this file except in compliance with the License.
      6  ** You may obtain a copy of the License at
      7  **
      8  **     http://www.apache.org/licenses/LICENSE-2.0
      9  **
     10  ** Unless required by applicable law or agreed to in writing, software
     11  ** distributed under the License is distributed on an "AS IS" BASIS,
     12  ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  ** See the License for the specific language governing permissions and
     14  ** limitations under the License.
     15  */
     16 /*******************************************************************************
     17 	File:		typedef.h
     18 
     19 	Content:	type defined for defferent paltform
     20 
     21 *******************************************************************************/
     22 
     23 #ifndef typedef_h
     24 #define typedef_h "$Id $"
     25 
     26 #undef ORIGINAL_TYPEDEF_H /* define to get "original" ETSI version
     27                              of typedef.h                           */
     28 
     29 #ifdef ORIGINAL_TYPEDEF_H
     30 /*
     31  * this is the original code from the ETSI file typedef.h
     32  */
     33 
     34 #if defined(__BORLANDC__) || defined(__WATCOMC__) || defined(_MSC_VER) || defined(__ZTC__)
     35 typedef signed char Word8;
     36 typedef short Word16;
     37 typedef long Word32;
     38 typedef int Flag;
     39 
     40 #elif defined(__sun)
     41 typedef signed char Word8;
     42 typedef short Word16;
     43 typedef long Word32;
     44 typedef int Flag;
     45 
     46 #elif defined(__unix__) || defined(__unix)
     47 typedef signed char Word8;
     48 typedef short Word16;
     49 typedef int Word32;
     50 typedef int Flag;
     51 
     52 #endif
     53 #else /* not original typedef.h */
     54 
     55 /*
     56  * use (improved) type definition file typdefs.h and add a "Flag" type
     57  */
     58 #include "typedefs.h"
     59 typedef int Flag;
     60 
     61 #endif
     62 
     63 #endif
     64