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/*********************************************************************** 18* 19* File : typedef.c 20* Purpose : Basic types. 21* 22************************************************************************/ 23 24#ifndef __TYPEDEF_H__ 25#define __TYPEDEF_H__ 26 27#undef ORIGINAL_TYPEDEF_H /* define to get "original" ETSI version 28 of typedef.h */ 29 30#ifdef ORIGINAL_TYPEDEF_H 31/* 32 * this is the original code from the ETSI file typedef.h 33 */ 34 35#if defined(__BORLANDC__) || defined(__WATCOMC__) || defined(_MSC_VER) || defined(__ZTC__) 36typedef signed char Word8; 37typedef short Word16; 38typedef long Word32; 39typedef int Flag; 40 41#elif defined(__sun) 42typedef signed char Word8; 43typedef short Word16; 44typedef long Word32; 45typedef int Flag; 46 47#elif defined(__unix__) || defined(__unix) 48typedef signed char Word8; 49typedef short Word16; 50typedef int Word32; 51typedef int Flag; 52 53#endif 54#else /* not original typedef.h */ 55 56/* 57 * use (improved) type definition file typdefs.h and add a "Flag" type 58 */ 59#include "typedefs.h" 60typedef int Flag; 61 62#endif 63 64#endif //__TYPEDEF_H__ 65 66