typedef.h revision b676a05348e4c516fa8b57e33b10548e6142c3f8
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__)
35typedef signed char Word8;
36typedef short Word16;
37typedef long Word32;
38typedef int Flag;
39
40#elif defined(__sun)
41typedef signed char Word8;
42typedef short Word16;
43typedef long Word32;
44typedef int Flag;
45
46#elif defined(__unix__) || defined(__unix)
47typedef signed char Word8;
48typedef short Word16;
49typedef int Word32;
50typedef 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"
59typedef int Flag;
60
61#endif
62
63#endif
64