portab_a.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /* portab_a.h -- advanced portability layer
  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. /*************************************************************************
  22. //
  23. **************************************************************************/
  24. #if defined(LZO_HAVE_CONFIG_H)
  25. # define LZO_CFG_NO_CONFIG_HEADER 1
  26. #endif
  27. #define LZO_WANT_ACC_INCD_H 1
  28. #define LZO_WANT_ACC_INCE_H 1
  29. #if defined(LZO_WANT_ACCLIB_GETOPT) || defined(WANT_LZO_PCLOCK) || defined(WANT_LZO_WILDARGV)
  30. # define LZO_WANT_ACC_INCI_H 1
  31. # define LZO_WANT_ACC_LIB_H 1
  32. #endif
  33. #if defined(WANT_LZO_PCLOCK)
  34. # define LZO_WANT_ACCLIB_PCLOCK 1
  35. #endif
  36. #if defined(WANT_LZO_WILDARGV)
  37. # define LZO_WANT_ACCLIB_WILDARGV 1
  38. #endif
  39. #include "src/lzo_supp.h"
  40. #if defined(WANT_LZO_MALLOC)
  41. # define lzo_malloc(a) (malloc(a))
  42. # define lzo_free(a) (free(a))
  43. #endif
  44. #if defined(WANT_LZO_FREAD)
  45. # define lzo_fread(f,b,s) (fread(b,1,s,f))
  46. # define lzo_fwrite(f,b,s) (fwrite(b,1,s,f))
  47. #endif
  48. /* vim:set ts=4 sw=4 et: */