/usr/src/redhat/BUILD/libsmbios-2.2.27/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 LIBSMBIOS_C_DLL_SPEC  __declspec(dllexport)
00038 #       else
00039 #           define LIBSMBIOS_C_DLL_SPEC  __declspec(dllimport)
00040 #       endif  /* SMBIOS_EXPORTS */
00041 #endif
00042 
00043 #if defined(LIBSMBIOS_C_HAS_VISIBILITY_ATTR) && defined(LIBSMBIOS_C_ALL_DYN_LINK)
00044 #           define LIBSMBIOS_C_DLL_SPEC  __attribute__ ((visibility ("default")))
00045 #endif
00046 
00047 #ifndef LIBSMBIOS_C_DLL_SPEC
00048 #   define LIBSMBIOS_C_DLL_SPEC
00049 #endif
00050 
00051 #ifdef __cplusplus
00052 #define EXTERN_C_BEGIN extern "C" {
00053 #define EXTERN_C_END   }
00054 #else
00055 #define EXTERN_C_BEGIN
00056 #define EXTERN_C_END
00057 #endif
00058 
00059 #ifdef LIBSMBIOS_C_PLATFORM_WIN32
00060 #   define WIN32_LEAN_AND_MEAN          /* Exclude rarely-used stuff from Windows headers */
00061 #   include <windows.h>
00062 #endif /* LIBSMBIOS_C_PLATFORM_WIN32 */
00063 
00064 #endif /* COMPAT_H */

Generated on Wed Jul 10 16:49:14 2013 for libsmbios_c library by  doxygen 1.4.7