00001 /* 00002 Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License as published by the Free Software Foundation; either 00007 version 2 of the License, or (at your option) any later version. 00008 00009 This library is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 Library General Public License for more details. 00013 00014 You should have received a copy of the GNU Library General Public License 00015 along with this library; see the file COPYING.LIB. If not, write to 00016 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00017 Boston, MA 02110-1301, USA. 00018 */ 00019 00020 #ifndef QWEBKITGLOBAL_H 00021 #define QWEBKITGLOBAL_H 00022 00023 #include <QtCore/qglobal.h> 00024 00025 #define QTWEBKIT_VERSION_STR "2.0.1" 00026 // QTWEBKIT_VERSION is (major << 16) + (minor << 8) + patch. Similar to Qt. 00027 #define QTWEBKIT_VERSION 0x020001 00028 // Use: #if (QTWEBKIT_VERSION >= QTWEBKIT_VERSION_CHECK(2, 0, 0)). Similar to Qt. 00029 #define QTWEBKIT_VERSION_CHECK(major, minor, patch) ((major<<16)|(minor<<8)|(patch)) 00030 00031 #if defined(QT_MAKEDLL) /* create a Qt DLL library */ 00032 # if defined(BUILD_WEBKIT) 00033 # define QWEBKIT_EXPORT Q_DECL_EXPORT 00034 # else 00035 # define QWEBKIT_EXPORT Q_DECL_IMPORT 00036 # endif 00037 #elif defined(QT_DLL) /* use a Qt DLL library */ 00038 # define QWEBKIT_EXPORT Q_DECL_IMPORT 00039 #endif 00040 00041 #if !defined(QWEBKIT_EXPORT) 00042 # if defined(QT_SHARED) 00043 # define QWEBKIT_EXPORT Q_DECL_EXPORT 00044 # else 00045 # define QWEBKIT_EXPORT 00046 # endif 00047 #endif 00048 00049 #endif // QWEBKITGLOBAL_H