libcdr_api.h
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
00002 /*
00003  * This file is part of the libcdr project.
00004  *
00005  * This Source Code Form is subject to the terms of the Mozilla Public
00006  * License, v. 2.0. If a copy of the MPL was not distributed with this
00007  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
00008  */
00009 
00010 #ifndef __LIBCDR_API_H__
00011 #define __LIBCDR_API_H__
00012 
00013 #ifdef DLL_EXPORT
00014 #ifdef LIBCDR_BUILD
00015 #define CDRAPI __declspec(dllexport)
00016 #else
00017 #define CDRAPI __declspec(dllimport)
00018 #endif
00019 #else // !DLL_EXPORT
00020 #ifdef LIBCDR_VISIBILITY
00021 #define CDRAPI __attribute__((visibility("default")))
00022 #else
00023 #define CDRAPI
00024 #endif
00025 #endif
00026 
00027 #endif
00028 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */