libsignoncommon.h
1 /*
2  * This file is part of signon
3  *
4  * Copyright (C) 2009-2010 Nokia Corporation.
5  * Copyright (C) 2015-2016 Canonical Ltd.
6  *
7  * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public License
11  * version 2.1 as published by the Free Software Foundation.
12  *
13  * This library is distributed in the hope that it will be useful, but
14  * WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21  * 02110-1301 USA
22  */
28 #ifndef LIBSIGNONCOMMON_H
29 #define LIBSIGNONCOMMON_H
30 
31 #ifdef SIGNON_EXPORT
32  #undef SIGNON_EXPORT
33 #endif
34 
35 #if __GNUC__ >= 4
36  #define SIGNON_EXPORT __attribute__ ((visibility("default")))
37 #endif
38 
39 #ifndef SIGNON_EXPORT
40  #define SIGNON_EXPORT
41 #endif
42 
43 #endif // LIBSIGNONCOMMON_H