uclutil.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /* uclutil.h -- utilities for the UCL real-time data compression library
  2. This file is part of the UCL data compression library.
  3. Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
  4. Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
  5. Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
  6. Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
  7. Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
  8. Copyright (C) 1997 Markus Franz Xaver Johannes Oberhumer
  9. Copyright (C) 1996 Markus Franz Xaver Johannes Oberhumer
  10. All Rights Reserved.
  11. The UCL library is free software; you can redistribute it and/or
  12. modify it under the terms of the GNU General Public License as
  13. published by the Free Software Foundation; either version 2 of
  14. the License, or (at your option) any later version.
  15. The UCL library is distributed in the hope that it will be useful,
  16. but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. GNU General Public License for more details.
  19. You should have received a copy of the GNU General Public License
  20. along with the UCL library; see the file COPYING.
  21. If not, write to the Free Software Foundation, Inc.,
  22. 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  23. Markus F.X.J. Oberhumer
  24. <markus@oberhumer.com>
  25. http://www.oberhumer.com/opensource/ucl/
  26. */
  27. #ifndef __UCLUTIL_H
  28. #define __UCLUTIL_H
  29. #ifndef __UCLCONF_H
  30. #include "uclconf.h"
  31. #endif
  32. #include <stdio.h>
  33. #ifdef __cplusplus
  34. extern "C" {
  35. #endif
  36. /***********************************************************************
  37. //
  38. ************************************************************************/
  39. UCL_EXTERN(ucl_uint)
  40. ucl_fread(FILE *f, ucl_voidp buf, ucl_uint size);
  41. UCL_EXTERN(ucl_uint)
  42. ucl_fwrite(FILE *f, const ucl_voidp buf, ucl_uint size);
  43. #if (UCL_UINT_MAX <= UINT_MAX)
  44. /* avoid problems with Win32 DLLs */
  45. # define ucl_fread(f,b,s) (fread(b,1,s,f))
  46. # define ucl_fwrite(f,b,s) (fwrite(b,1,s,f))
  47. #endif
  48. #ifdef __cplusplus
  49. } /* extern "C" */
  50. #endif
  51. #endif /* already included */