ansi/Types.h

Go to the documentation of this file.
00001 //
00002 //  Copyright (c) 2003-2006 by Autodesk, Inc.
00003 //
00004 //  By using this code, you are agreeing to the terms and conditions of
00005 //  the License Agreement included in the documentation for this code.
00006 //
00007 //  AUTODESK MAKES NO WARRANTIES, EXPRESS OR IMPLIED,
00008 //  AS TO THE CORRECTNESS OF THIS CODE OR ANY DERIVATIVE
00009 //  WORKS WHICH INCORPORATE IT.
00010 //
00011 //  AUTODESK PROVIDES THE CODE ON AN "AS-IS" BASIS
00012 //  AND EXPLICITLY DISCLAIMS ANY LIABILITY, INCLUDING
00013 //  CONSEQUENTIAL AND INCIDENTAL DAMAGES FOR ERRORS,
00014 //  OMISSIONS, AND OTHER PROBLEMS IN THE CODE.
00015 //
00016 //  Use, duplication, or disclosure by the U.S. Government is subject to
00017 //  restrictions set forth in FAR 52.227-19 (Commercial Computer Software
00018 //  Restricted Rights) and DFAR 252.227-7013(c)(1)(ii) (Rights in Technical
00019 //  Data and Computer Software), as applicable.
00020 //
00021 
00022 
00023 #ifndef _DWFCORE_TYPES_ANSI_H
00024 #define _DWFCORE_TYPES_ANSI_H
00025 
00030 
00031 #include <limits.h>
00032 #include <inttypes.h>
00033 
00034 #define _DWFCORE_WCHAR_MAX      __WCHAR_MAX
00035 #define _DWFCORE_SHRT_MAX       SHRT_MAX
00036 #define _DWFCORE_INT_MAX        INT_MAX
00037 
00038 #if (_DWFCORE_WCHAR_MAX == _DWFCORE_SHRT_MAX)
00039 
00040 typedef char        ASCII_char_t;
00041 typedef wchar_t     UCS2_char_t;
00042 typedef uint32_t    UCS4_char_t;
00043 
00044 #else
00045 
00046 typedef char        ASCII_char_t;
00047 typedef uint16_t    UCS2_char_t;
00048 typedef wchar_t     UCS4_char_t;
00049 
00050 #endif
00051 
00052 
00053 #endif
00054 

Generated on Tue Jan 6 22:39:29 2009 for Autodesk DWF Core Library by  doxygen 1.4.5