Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

cstdint.hpp

Go to the documentation of this file.
00001 /*
00002     libglim: a C++ Free library render images using OpenGL
00003     Copyright (C) 2002 Nestal Wan
00004 
00005     This library is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU General Public License
00007     as published by the Free Software Foundation; either
00008     version 2 of the License, or (at your option) any later version.
00009 
00010     This library is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013     General Public License for more details.
00014 
00015     You should have received a copy of the GNU General Public
00016     License along with this library; if not, write to the Free Software
00017     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018 */
00026 #ifndef __PICINFO_CSTDINT_HEADER_INCLUDED__
00027 #define __PICINFO_CSTDINT_HEADER_INCLUDED__
00028 
00029 #ifdef HAVE_CONFIG_H
00030 
00031     // autotools configuration header
00032     #include "config.h"
00033 #endif
00034     
00035 #ifdef HAVE_STDINT_H
00036     #include <stdint.h>
00037 #endif
00038 
00039 namespace picinfo
00040 {
00041 #ifdef HAVE_STDINT_H
00042     // assume 
00043     using ::uint8_t ;
00044     using ::uint16_t ;
00045     using ::uint32_t ;
00046     using ::uint64_t ;
00047     
00048     using ::int8_t ;
00049     using ::int16_t ;
00050     using ::int32_t ;
00051     using ::int64_t ;
00052 #elif defined WIN32
00053     typedef unsigned __int8   uint8_t ;
00054     typedef unsigned __int16  uint16_t ;
00055     typedef unsigned __int32  uint32_t ;
00056     typedef unsigned __int64  uint64_t ;
00057 
00058     typedef signed __int8   int8_t ;
00059     typedef signed __int16  int16_t ;
00060     typedef signed __int32  int32_t ;
00061     typedef signed __int64  int64_t ;
00062 #else
00063     #error cannot define sized intgers
00064 #endif
00065 }
00066 
00067 #endif

Generated on Fri Jan 13 23:38:12 2006 for picinfo by  doxygen 1.4.4