summaryrefslogtreecommitdiff
path: root/notes/akonadi-notes_export.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2012-06-27 08:22:11 (GMT)
committerChristian Mollekopf <chrigi_1@fastmail.fm>2012-06-27 08:22:11 (GMT)
commite51f456146457a444dab9c477c8e21bcd9faf9b4 (patch)
treeee4f5186d6e58c7a4136bf915e9c3b2efa4c5576 /notes/akonadi-notes_export.h
parentad466258dc5a568260c33808827b8870777a69f7 (diff)
downloadlibcalendaring-e51f456146457a444dab9c477c8e21bcd9faf9b4.tar.gz
akonadi notes
Diffstat (limited to 'notes/akonadi-notes_export.h')
-rw-r--r--notes/akonadi-notes_export.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/notes/akonadi-notes_export.h b/notes/akonadi-notes_export.h
new file mode 100644
index 0000000..0a4f72c
--- /dev/null
+++ b/notes/akonadi-notes_export.h
@@ -0,0 +1,39 @@
+/* This file is part of the KDE project
+ Copyright (C) 2011 Christian Mollekopf <chrigi_1@fastmail.fm>
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public License
+ along with this library; see the file COPYING.LIB. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+*/
+
+#ifndef AKONADI_NOTES_EXPORT_H
+#define AKONADI_NOTES_EXPORT_H
+
+/* needed for KDE_EXPORT and KDE_IMPORT macros */
+#include <kdemacros.h>
+
+#ifndef AKONADI_NOTES_EXPORT
+# if defined(KDEPIM_STATIC_LIBS)
+ /* No export/import for static libraries */
+# define AKONADI_NOTES_EXPORT
+# elif defined(MAKE_AKONADI_NOTES_LIB)
+ /* We are building this library */
+# define AKONADI_NOTES_EXPORT KDE_EXPORT
+# else
+ /* We are using this library */
+# define AKONADI_NOTES_EXPORT KDE_IMPORT
+# endif
+#endif
+
+#endif