lzoutil.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /* lzoutil.h -- utility functions for use by applications
  2. This file is part of the LZO real-time data compression library.
  3. Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
  4. All Rights Reserved.
  5. The LZO library is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU General Public License as
  7. published by the Free Software Foundation; either version 2 of
  8. the License, or (at your option) any later version.
  9. The LZO library is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with the LZO library; see the file COPYING.
  15. If not, write to the Free Software Foundation, Inc.,
  16. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17. Markus F.X.J. Oberhumer
  18. <markus@oberhumer.com>
  19. http://www.oberhumer.com/opensource/lzo/
  20. */
  21. #ifndef __LZOUTIL_H_INCLUDED
  22. #define __LZOUTIL_H_INCLUDED 1
  23. #ifndef __LZOCONF_H_INCLUDED
  24. #include <lzo/lzoconf.h>
  25. #endif
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif
  29. /***********************************************************************
  30. // LZO-v1 deprecated macros (which were used in the old example programs)
  31. //
  32. // THIS FILE IS DEPRECATED. DO NOT USE.
  33. ************************************************************************/
  34. #define lzo_alloc(a,b) (malloc((a)*(b)))
  35. #define lzo_malloc(a) (malloc(a))
  36. #define lzo_free(a) (free(a))
  37. #define lzo_fread(f,b,s) (fread(b,1,s,f))
  38. #define lzo_fwrite(f,b,s) (fwrite(b,1,s,f))
  39. #ifdef __cplusplus
  40. } /* extern "C" */
  41. #endif
  42. #endif /* already included */
  43. /* vim:set ts=4 sw=4 et: */