quazip_global.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #ifndef QUAZIP_GLOBAL_H
  2. #define QUAZIP_GLOBAL_H
  3. /*
  4. Copyright (C) 2005-2014 Sergey A. Tachenov
  5. This file is part of QuaZIP.
  6. QuaZIP is free software: you can redistribute it and/or modify
  7. it under the terms of the GNU Lesser General Public License as published by
  8. the Free Software Foundation, either version 2.1 of the License, or
  9. (at your option) any later version.
  10. QuaZIP is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU Lesser General Public License for more details.
  14. You should have received a copy of the GNU Lesser General Public License
  15. along with QuaZIP. If not, see <http://www.gnu.org/licenses/>.
  16. See COPYING file for the full LGPL text.
  17. Original ZIP package is copyrighted by Gilles Vollant and contributors,
  18. see quazip/(un)zip.h files for details. Basically it's the zlib license.
  19. */
  20. #include <QtCore/qglobal.h>
  21. /**
  22. This is automatically defined when building a static library, but when
  23. including QuaZip sources directly into a project, QUAZIP_STATIC should
  24. be defined explicitly to avoid possible troubles with unnecessary
  25. importing/exporting.
  26. */
  27. #ifdef QUAZIP_STATIC
  28. #define QUAZIP_EXPORT
  29. #else
  30. /**
  31. * When building a DLL with MSVC, QUAZIP_BUILD must be defined.
  32. * qglobal.h takes care of defining Q_DECL_* correctly for msvc/gcc.
  33. */
  34. #if defined(QUAZIP_BUILD)
  35. #define QUAZIP_EXPORT Q_DECL_EXPORT
  36. #else
  37. #define QUAZIP_EXPORT Q_DECL_IMPORT
  38. #endif
  39. #endif // QUAZIP_STATIC
  40. #ifdef __GNUC__
  41. #define UNUSED __attribute__((__unused__))
  42. #else
  43. #define UNUSED
  44. #endif
  45. #define QUAZIP_EXTRA_NTFS_MAGIC 0x000Au
  46. #define QUAZIP_EXTRA_NTFS_TIME_MAGIC 0x0001u
  47. #endif // QUAZIP_GLOBAL_H