1e2e838afcf03e603a41a0455846eaf9614537c16Mans Rullgard/* 2e2e838afcf03e603a41a0455846eaf9614537c16Mans Rullgard ** Copyright 2003-2010, VisualOn, Inc. 3e2e838afcf03e603a41a0455846eaf9614537c16Mans Rullgard ** 4e2e838afcf03e603a41a0455846eaf9614537c16Mans Rullgard ** Licensed under the Apache License, Version 2.0 (the "License"); 5e2e838afcf03e603a41a0455846eaf9614537c16Mans Rullgard ** you may not use this file except in compliance with the License. 6e2e838afcf03e603a41a0455846eaf9614537c16Mans Rullgard ** You may obtain a copy of the License at 7e2e838afcf03e603a41a0455846eaf9614537c16Mans Rullgard ** 8e2e838afcf03e603a41a0455846eaf9614537c16Mans Rullgard ** http://www.apache.org/licenses/LICENSE-2.0 9e2e838afcf03e603a41a0455846eaf9614537c16Mans Rullgard ** 10e2e838afcf03e603a41a0455846eaf9614537c16Mans Rullgard ** Unless required by applicable law or agreed to in writing, software 11e2e838afcf03e603a41a0455846eaf9614537c16Mans Rullgard ** distributed under the License is distributed on an "AS IS" BASIS, 12e2e838afcf03e603a41a0455846eaf9614537c16Mans Rullgard ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13e2e838afcf03e603a41a0455846eaf9614537c16Mans Rullgard ** See the License for the specific language governing permissions and 14e2e838afcf03e603a41a0455846eaf9614537c16Mans Rullgard ** limitations under the License. 15e2e838afcf03e603a41a0455846eaf9614537c16Mans Rullgard */ 16e2e838afcf03e603a41a0455846eaf9614537c16Mans Rullgard/******************************************************************************* 17e2e838afcf03e603a41a0455846eaf9614537c16Mans Rullgard File: typedef.h 18e2e838afcf03e603a41a0455846eaf9614537c16Mans Rullgard 19e2e838afcf03e603a41a0455846eaf9614537c16Mans Rullgard Content: type defined for defferent paltform 20e2e838afcf03e603a41a0455846eaf9614537c16Mans Rullgard 21956c553ab0ce72f8074ad0fda2ffd66a0305700cJames Dong*******************************************************************************/ 22956c553ab0ce72f8074ad0fda2ffd66a0305700cJames Dong 23956c553ab0ce72f8074ad0fda2ffd66a0305700cJames Dong#ifndef typedef_h 24956c553ab0ce72f8074ad0fda2ffd66a0305700cJames Dong#define typedef_h "$Id $" 25956c553ab0ce72f8074ad0fda2ffd66a0305700cJames Dong 26956c553ab0ce72f8074ad0fda2ffd66a0305700cJames Dong#undef ORIGINAL_TYPEDEF_H /* define to get "original" ETSI version 27956c553ab0ce72f8074ad0fda2ffd66a0305700cJames Dong of typedef.h */ 28956c553ab0ce72f8074ad0fda2ffd66a0305700cJames Dong 29956c553ab0ce72f8074ad0fda2ffd66a0305700cJames Dong#ifdef ORIGINAL_TYPEDEF_H 30956c553ab0ce72f8074ad0fda2ffd66a0305700cJames Dong/* 31956c553ab0ce72f8074ad0fda2ffd66a0305700cJames Dong * this is the original code from the ETSI file typedef.h 32956c553ab0ce72f8074ad0fda2ffd66a0305700cJames Dong */ 33b676a05348e4c516fa8b57e33b10548e6142c3f8Mans Rullgard 34956c553ab0ce72f8074ad0fda2ffd66a0305700cJames Dong#if defined(__BORLANDC__) || defined(__WATCOMC__) || defined(_MSC_VER) || defined(__ZTC__) 35956c553ab0ce72f8074ad0fda2ffd66a0305700cJames Dongtypedef signed char Word8; 36956c553ab0ce72f8074ad0fda2ffd66a0305700cJames Dongtypedef short Word16; 37956c553ab0ce72f8074ad0fda2ffd66a0305700cJames Dongtypedef long Word32; 38956c553ab0ce72f8074ad0fda2ffd66a0305700cJames Dongtypedef int Flag; 39956c553ab0ce72f8074ad0fda2ffd66a0305700cJames Dong 40956c553ab0ce72f8074ad0fda2ffd66a0305700cJames Dong#elif defined(__sun) 41956c553ab0ce72f8074ad0fda2ffd66a0305700cJames Dongtypedef signed char Word8; 42956c553ab0ce72f8074ad0fda2ffd66a0305700cJames Dongtypedef short Word16; 43956c553ab0ce72f8074ad0fda2ffd66a0305700cJames Dongtypedef long Word32; 44956c553ab0ce72f8074ad0fda2ffd66a0305700cJames Dongtypedef int Flag; 45956c553ab0ce72f8074ad0fda2ffd66a0305700cJames Dong 46956c553ab0ce72f8074ad0fda2ffd66a0305700cJames Dong#elif defined(__unix__) || defined(__unix) 47956c553ab0ce72f8074ad0fda2ffd66a0305700cJames Dongtypedef signed char Word8; 48956c553ab0ce72f8074ad0fda2ffd66a0305700cJames Dongtypedef short Word16; 49956c553ab0ce72f8074ad0fda2ffd66a0305700cJames Dongtypedef int Word32; 50956c553ab0ce72f8074ad0fda2ffd66a0305700cJames Dongtypedef int Flag; 51956c553ab0ce72f8074ad0fda2ffd66a0305700cJames Dong 52956c553ab0ce72f8074ad0fda2ffd66a0305700cJames Dong#endif 53956c553ab0ce72f8074ad0fda2ffd66a0305700cJames Dong#else /* not original typedef.h */ 54956c553ab0ce72f8074ad0fda2ffd66a0305700cJames Dong 55956c553ab0ce72f8074ad0fda2ffd66a0305700cJames Dong/* 56956c553ab0ce72f8074ad0fda2ffd66a0305700cJames Dong * use (improved) type definition file typdefs.h and add a "Flag" type 57e2e838afcf03e603a41a0455846eaf9614537c16Mans Rullgard */ 58956c553ab0ce72f8074ad0fda2ffd66a0305700cJames Dong#include "typedefs.h" 59956c553ab0ce72f8074ad0fda2ffd66a0305700cJames Dongtypedef int Flag; 60956c553ab0ce72f8074ad0fda2ffd66a0305700cJames Dong 61956c553ab0ce72f8074ad0fda2ffd66a0305700cJames Dong#endif 62956c553ab0ce72f8074ad0fda2ffd66a0305700cJames Dong 63956c553ab0ce72f8074ad0fda2ffd66a0305700cJames Dong#endif 64