Holger Freyther | 6d9f77a | 2009-06-08 10:32:54 +0000 | [diff] [blame^] | 1 | /* |
| 2 | * (C) 2009 by Holger Hans Peter Freyther <zecke@selfish.org> |
| 3 | * |
| 4 | * All Rights Reserved |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation; either version 2 of the License, or |
| 9 | * (at your option) any later version. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU General Public License along |
| 17 | * with this program; if not, write to the Free Software Foundation, Inc., |
| 18 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 19 | * |
| 20 | */ |
| 21 | |
| 22 | #ifndef OPENBSCDEFINES_H |
| 23 | #define OPENBSCDEFINES_H |
| 24 | |
| 25 | #ifdef BUILDING_ON_WINDOWS |
| 26 | #ifdef BUILDING_OPENBSC |
| 27 | #define BSC_API __declspec(dllexport) |
| 28 | #else |
| 29 | #define BSC_API __declspec(dllimport) |
| 30 | #endif |
| 31 | #else |
| 32 | #define BSC_API __attribute__((visibility("default"))) |
| 33 | #endif |
| 34 | |
| 35 | #endif |