qwt_global.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
  2. * Qwt Widget Library
  3. * Copyright (C) 1997 Josef Wilgen
  4. * Copyright (C) 2002 Uwe Rathmann
  5. *
  6. * This library is free software; you can redistribute it and/or
  7. * modify it under the terms of the Qwt License, Version 1.0
  8. *****************************************************************************/
  9. #ifndef QWT_GLOBAL_H
  10. #define QWT_GLOBAL_H
  11. #include <qglobal.h>
  12. // QWT_VERSION is (major << 16) + (minor << 8) + patch.
  13. #define QWT_VERSION 0x060000
  14. #define QWT_VERSION_STR "6.0.0-svn"
  15. #if defined(Q_WS_WIN) || defined(Q_WS_S60)
  16. #if defined(_MSC_VER) /* MSVC Compiler */
  17. /* template-class specialization 'identifier' is already instantiated */
  18. #pragma warning(disable: 4660)
  19. #endif // _MSC_VER
  20. #ifdef QWT_DLL
  21. #if defined(QWT_MAKEDLL) // create a Qwt DLL library
  22. #define QWT_EXPORT __declspec(dllexport)
  23. #define QWT_TEMPLATEDLL
  24. #else // use a Qwt DLL library
  25. #define QWT_EXPORT __declspec(dllimport)
  26. #endif
  27. #endif // QWT_DLL
  28. #endif // Q_WS_WIN || Q_WS_S60
  29. #ifndef QWT_EXPORT
  30. #define QWT_EXPORT
  31. #endif
  32. // #define QWT_NO_COMPAT 1 // disable withdrawn functionality
  33. #endif