qwt_global.h

00001 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
00002  * Qwt Widget Library
00003  * Copyright (C) 1997   Josef Wilgen
00004  * Copyright (C) 2002   Uwe Rathmann
00005  * 
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the Qwt License, Version 1.0
00008  *****************************************************************************/
00009 
00010 // vim: expandtab
00011 
00012 #ifndef QWT_GLOBAL_H
00013 #define QWT_GLOBAL_H
00014 
00015 #include <qglobal.h>
00016 #if QT_VERSION < 0x040000
00017 #include <qmodules.h>
00018 #endif
00019 
00020 #define QWT_VERSION       0x050000
00021 #define QWT_VERSION_STR   "5.0.0cvs"
00022 
00023 //
00024 // Create Qwt DLL if QWT_DLL is defined (Windows only)
00025 //
00026 
00027 #if defined(Q_WS_WIN)
00028 
00029 #if defined(_MSC_VER) /* MSVC Compiler */
00030 /* template-class specialization 'identifier' is already instantiated */
00031 #pragma warning(disable: 4660)
00032 #endif
00033 
00034 #if defined(QWT_NODLL)
00035 #undef QWT_MAKEDLL
00036 #undef QWT_DLL
00037 #undef QWT_TEMPLATEDLL
00038 #endif
00039 
00040 #ifdef QWT_DLL
00041 #if defined(QWT_MAKEDLL)     /* create a Qwt DLL library */
00042 #undef QWT_DLL
00043 #define QWT_EXPORT  __declspec(dllexport)
00044 #define QWT_TEMPLATEDLL
00045 #endif
00046 #endif
00047 
00048 #if defined(QWT_DLL)     /* use a Qwt DLL library */
00049 #define QWT_EXPORT  __declspec(dllimport)
00050 #define QWT_TEMPLATEDLL
00051 #endif
00052 
00053 #else // ! Q_WS_WIN
00054 #undef QWT_MAKEDLL       /* ignore these for other platforms */
00055 #undef QWT_DLL
00056 #undef QWT_TEMPLATEDLL
00057 #endif
00058 
00059 #ifndef QWT_EXPORT
00060 #define QWT_EXPORT
00061 #endif
00062 
00063 // #define QWT_NO_COMPAT 1 // disable withdrawn functionality
00064 
00065 #endif // QWT_GLOBAL_H

Generated on Thu Jan 18 10:39:39 2007 for Qwt User's Guide by  doxygen 1.4.6