]> Git trees. - libqmvoc.git/commitdiff
adapt libqmvocdocument_export.h for querymee
authorReto Zingg <g.d0b3rm4n@gmail.com>
Sat, 15 Dec 2012 17:28:48 +0000 (19:28 +0200)
committerReto Zingg <g.d0b3rm4n@gmail.com>
Sat, 15 Dec 2012 17:28:48 +0000 (19:28 +0200)
libqmvocdocument_export.h

index c5675d825c39392a0b524a6833b0b00524294a08..c19103d32fea224697c28a537d41665736788c06 100644 (file)
@@ -1,5 +1,10 @@
+/***************************************************************************
+*   this file is from kdeedu project. Filename: libkeduvocdocument_export.h
+***************************************************************************/
+
 /*  This file is part of the KDE project
     Copyright (C) 2007 David Faure <faure@kde.org>
+    Copyright (C) 2010, 2012 Reto Zingg <g.d0b3rm4n@gmail.com>
 
     This library is free software; you can redistribute it and/or
     modify it under the terms of the GNU Library General Public
     Boston, MA 02110-1301, USA.
 */
 
-#ifndef LIBKEDUVOCDOCUMENT_EXPORT_H
-#define LIBKEDUVOCDOCUMENT_EXPORT_H
+#ifndef LIBQMVOCDOCUMENT_EXPORT_H
+#define LIBQMVOCDOCUMENT_EXPORT_H
 
 /* needed for KDE_EXPORT and KDE_IMPORT macros */
-#include <kdemacros.h>
+// #include <kdemacros.h>
+
+#define KDE_EXPORT __attribute__ ((visibility("default")))
+#define KDE_IMPORT __attribute__ ((visibility("default")))
+
+#ifdef __cplusplus
+# include <QtCore/qglobal.h>
+# ifndef KDE_DEPRECATED
+#  ifdef KDE_DEPRECATED_WARNINGS
+#   define KDE_DEPRECATED Q_DECL_DEPRECATED
+#  else
+#   define KDE_DEPRECATED
+#  endif
+# endif
+#endif
+
+
 
 #ifndef KEDUVOCDOCUMENT_EXPORT
 # if defined(MAKE_KEDUVOCDOCUMENT_LIB)
 /* We are building this library */
-#  define KEDUVOCDOCUMENT_EXPORT KDE_EXPORT
+#  define QMVOCDOCUMENT_EXPORT KDE_EXPORT
 # else
 /* We are using this library */
-#  define KEDUVOCDOCUMENT_EXPORT KDE_IMPORT
+#  define QMVOCDOCUMENT_EXPORT KDE_IMPORT
 # endif
 #endif
 
 # ifndef KEDUVOCDOCUMENT_EXPORT_DEPRECATED
-#  define KEDUVOCDOCUMENT_EXPORT_DEPRECATED KDE_DEPRECATED KEDUVOCDOCUMENT_EXPORT
+#  define KEDUVOCDOCUMENT_EXPORT_DEPRECATED KDE_DEPRECATED QMVOCDOCUMENT_EXPORT
 # endif
 
 #endif
+