gloox 1.0

macros.h

00001 /*
00002   Copyright (c) 2005-2009 by Jakob Schroeter <js@camaya.net>
00003   This file is part of the gloox library. http://camaya.net/gloox
00004 
00005   This software is distributed under a license. The full license
00006   agreement can be found in the file LICENSE in this distribution.
00007   This software may not be copied, modified, sold or distributed
00008   other than expressed in the named license agreement.
00009 
00010   This software is distributed without any warranty.
00011 */
00012 
00013 
00014 #ifndef GLOOX_MACROS_H__
00015 #define GLOOX_MACROS_H__
00016 
00017 #if defined( _MSC_VER ) || defined( _WIN32_WCE )
00018 #  pragma warning( disable:4251 )
00019 #  pragma warning( disable:4786 )
00020 #endif
00021 
00022 #if defined( _WIN32 ) && !defined( __SYMBIAN32__ )
00023 #  if defined( GLOOX_EXPORTS ) || defined( DLL_EXPORT )
00024 #    define GLOOX_API __declspec( dllexport )
00025 #  else
00026 #    if defined( GLOOX_IMPORTS ) || defined( DLL_IMPORT )
00027 #      define GLOOX_API __declspec( dllimport )
00028 #    endif
00029 #  endif
00030 #endif
00031 
00032 #ifndef GLOOX_API
00033 #  define GLOOX_API
00034 #endif
00035 
00036 
00037 #if defined( __GNUC__ ) && ( __GNUC__ - 0 > 3 || ( __GNUC__ - 0 == 3 && __GNUC_MINOR__ - 0 >= 2 ) )
00038 #  define GLOOX_DEPRECATED __attribute__ ( (__deprecated__) )
00039 #  define GLOOX_DEPRECATED_CTOR explicit GLOOX_DEPRECATED
00040 #elif defined( _MSC_VER ) && ( _MSC_VER >= 1300 )
00041 #  define GLOOX_DEPRECATED __declspec( deprecated )
00042 #  define GLOOX_DEPRECATED_CTOR explicit GLOOX_DEPRECATED
00043 #else
00044 #  define GLOOX_DEPRECATED
00045 #  define GLOOX_DEPRECATED_CTOR
00046 #endif
00047 
00048 
00049 #endif // GLOOX_MACROS_H__