1 /*
2 
3 Copyright (c) 2002-2008, Yauheni Akhotnikau
4 Copyright (c) 2008-2013, The SObjectizer Project
5 All rights reserved.
6 
7 Redistribution and use in source and binary forms, with or without
8 modification, are permitted provided that the following conditions are met:
9 
10 - Redistributions of source code must retain the above copyright notice, this
11 list of conditions and the following disclaimer.
12 
13 - Redistributions in binary form must reproduce the above copyright notice, this
14 list of conditions and the following disclaimer in the documentation and/or
15 other materials provided with the distribution.
16 
17 - The name of the author may not be used to endorse or promote products derived
18 from this software without specific prior written permission.
19 
20 THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
21 WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
22 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
23 EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
24 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
25 OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
28 IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
29 OF SUCH DAMAGE.
30 
31 */
32 
33 /*!
34 	\file oess_2/tlv/h/declspec.hpp
35 	\brief �������, ���������� ����������,
36 	������� ��������� ��������� ��� ��������
37 	������� �� ���������� ObjESSty.
38 */
39 #if !defined( _OESS_2__TLV__DECLSPEC_HPP_ )
40 #define _OESS_2__TLV__DECLSPEC_HPP_
41 
42 #include <cpp_util_2/h/detect_compiler.hpp>
43 
44 #if defined( OESS_2__STATIC_LIBS )
45 	#define OESS_2__TLV__TYPE
46 
47 	#define OESS_2__TLV__FUNC(ret_type) ret_type
48 #elif defined( OESS_2__TLV__PRJ )
49 	#define OESS_2__TLV__TYPE\
50 	CPP_UTIL_2_EXPORT
51 
52 	#define OESS_2__TLV__FUNC(ret_type)\
53 	CPP_UTIL_2_EXPORT_FUNC_SPEC(ret_type)
54 #else
55 	#define OESS_2__TLV__TYPE\
56 	CPP_UTIL_2_IMPORT
57 
58 	#define OESS_2__TLV__FUNC(ret_type)\
59 	CPP_UTIL_2_IMPORT_FUNC_SPEC(ret_type)
60 #endif
61 
62 #endif
63 
64