/usr/src/packages/BUILD/libsmbios-2.2.27/src/include/smbios_c/types.h

Go to the documentation of this file.
00001 // vim:expandtab:autoindent:tabstop=4:shiftwidth=4:filetype=c:
00002 /*
00003  * Copyright (C) 2005 Dell Inc.
00004  *  by Michael Brown <Michael_E_Brown@dell.com>
00005  * Licensed under the Open Software License version 2.1
00006  *
00007  * Alternatively, you can redistribute it and/or modify
00008  * it under the terms of the GNU General Public License as published
00009  * by the Free Software Foundation; either version 2 of the License,
00010  * or (at your option) any later version.
00011 
00012  * This program is distributed in the hope that it will be useful, but
00013  * WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00015  * See the GNU General Public License for more details.
00016  */
00017 
00018 
00019 #ifndef TYPES_H
00020 #define TYPES_H
00021 
00022 // compat header should always be first header
00023 #include "smbios_c/compat.h"
00024 
00025 #include <stdbool.h>
00026 
00027 #ifndef TYPE_DEFINED_U8
00028 #define TYPE_DEFINED_U8
00029 typedef unsigned char   u8;
00030 #endif
00031 #ifndef TYPE_DEFINED_U16
00032 #define TYPE_DEFINED_U16
00033 typedef unsigned short  u16;
00034 #endif
00035 #ifndef TYPE_DEFINED_U32
00036 #define TYPE_DEFINED_U32
00037 typedef unsigned int    u32;
00038 #endif
00039 
00040 
00041 #ifndef TYPE_DEFINED_S8
00042 #define TYPE_DEFINED_S8
00043 typedef   signed char   s8;
00044 #endif
00045 #ifndef TYPE_DEFINED_S16
00046 #define TYPE_DEFINED_S16
00047 typedef   signed short  s16;
00048 #endif
00049 #ifndef TYPE_DEFINED_S32
00050 #define TYPE_DEFINED_S32
00051 typedef   signed int    s32;
00052 #endif
00053 
00054 #ifndef TYPE_DEFINED_U64
00055 #define TYPE_DEFINED_U64
00056 #if defined(LIBSMBIOS_C_HAS_LONG_LONG)
00057 typedef unsigned long long  u64;
00058 #elif defined(LIBSMBIOS_C_HAS_MS_INT64)
00059 typedef unsigned __int64 u64;
00060 #else
00061 #error  "No LONG LONG or __INT64 support. Current compiler config is not supported."
00062 #endif
00063 #endif
00064 
00065 #ifndef TYPE_DEFINED_S64
00066 #define TYPE_DEFINED_S64
00067 #if defined(LIBSMBIOS_C_HAS_LONG_LONG)
00068 typedef   signed long long  s64;
00069 #elif defined(LIBSMBIOS_C_HAS_MS_INT64)
00070 typedef signed   __int64 s64;
00071 #else
00072 #error  "No LONG LONG or __INT64 support. Current compiler config is not supported."
00073 #endif
00074 #endif
00075 
00076 #endif /* TYPES_H */

Generated on Tue Mar 5 16:58:05 2013 for libsmbios_c library by  doxygen 1.4.6