• Main Page
  • Data Structures
  • Files
  • File List
  • Globals

/home/builduser/trunk/pkgs/libsmbios/BUILD/libsmbios-2.2.19/src/include/smbios_c/compat.h

Go to the documentation of this file.
00001 /* vim:expandtab:autoindent:tabstop=4:shiftwidth=4:filetype=c:cindent:
00002  */
00003 /*
00004  * Copyright (C) 2005 Dell Inc.
00005  *  by Michael Brown <Michael_E_Brown@dell.com>
00006  * Licensed under the Open Software License version 2.1
00007  *
00008  * Alternatively, you can redistribute it and/or modify
00009  * it under the terms of the GNU General Public License as published
00010  * by the Free Software Foundation; either version 2 of the License,
00011  * or (at your option) any later version.
00012 
00013  * This program is distributed in the hope that it will be useful, but
00014  * WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00016  * See the GNU General Public License for more details.
00017  */
00018 
00019 
00020 #ifndef LIBSMBIOS_C_COMPAT_H_INCLUDED
00021 #define LIBSMBIOS_C_COMPAT_H_INCLUDED
00022 
00023 #ifdef LIBSMBIOS_C_SOURCE
00024 #include "libsmbios_c_source.h"
00025 #endif
00026 
00027 #include "smbios_c/config/get_config.h"
00028 #include "smbios_c/config/auto_link.h"
00029 
00030 /*
00031  * CHANGES TO THIS FILE CAUSE A WHOLE-PROJECT REBUILD!
00032  *      Keep changes here to a minimum!
00033 */
00034 
00035 #if defined(LIBSMBIOS_C_HAS_DECLSPEC) && defined(LIBSMBIOS_C_ALL_DYN_LINK)
00036 #       if defined(LIBSMBIOS_C_SOURCE)
00037 #           define DLL_SPEC  __declspec(dllexport)
00038 #       else
00039 #           define DLL_SPEC  __declspec(dllimport)
00040 #       endif  /* SMBIOS_EXPORTS */
00041 #endif
00042 
00043 #ifndef DLL_SPEC
00044 #   define DLL_SPEC
00045 #endif
00046 
00047 #ifdef __cplusplus
00048 #define EXTERN_C_BEGIN extern "C" {
00049 #define EXTERN_C_END   }
00050 #else
00051 #define EXTERN_C_BEGIN
00052 #define EXTERN_C_END
00053 #endif
00054 
00055 #ifdef LIBSMBIOS_C_PLATFORM_WIN32
00056 #   define WIN32_LEAN_AND_MEAN          /* Exclude rarely-used stuff from Windows headers */
00057 #   include <windows.h>
00058 #endif /* LIBSMBIOS_C_PLATFORM_WIN32 */
00059 
00060 #endif /* COMPAT_H */

Generated on Mon Sep 6 2010 16:50:29 for libsmbios_c library by  doxygen 1.7.1