cairo-missing.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /* cairo - a vector graphics library with display and print output
  2. *
  3. * Copyright © 2006 Red Hat, Inc.
  4. * Copyright © 2011 Andrea Canciani
  5. *
  6. * Permission to use, copy, modify, distribute, and sell this software
  7. * and its documentation for any purpose is hereby granted without
  8. * fee, provided that the above copyright notice appear in all copies
  9. * and that both that copyright notice and this permission notice
  10. * appear in supporting documentation, and that the name of the
  11. * copyright holders not be used in advertising or publicity
  12. * pertaining to distribution of the software without specific,
  13. * written prior permission. The copyright holders make no
  14. * representations about the suitability of this software for any
  15. * purpose. It is provided "as is" without express or implied
  16. * warranty.
  17. *
  18. * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
  19. * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  20. * FITNESS, IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY
  21. * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  22. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
  23. * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
  24. * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  25. * SOFTWARE.
  26. *
  27. * Authors: Carl Worth <cworth@cworth.org>
  28. * Andrea Canciani <ranma42@gmail.com>
  29. */
  30. #ifndef CAIRO_MISSING_H
  31. #define CAIRO_MISSING_H
  32. #include "cairo-compiler-private.h"
  33. #include <stdio.h>
  34. #include <string.h>
  35. #include <sys/types.h>
  36. #ifdef _WIN32
  37. #define WIN32_LEAN_AND_MEAN
  38. #include <windows.h>
  39. #if !defined(_SSIZE_T_DEFINED) && !defined(_SSIZE_T_)
  40. typedef SSIZE_T ssize_t;
  41. #endif
  42. #endif
  43. #ifndef HAVE_GETLINE
  44. cairo_private ssize_t
  45. getline (char **lineptr, size_t *n, FILE *stream);
  46. #endif
  47. #ifndef HAVE_STRNDUP
  48. cairo_private char *
  49. strndup (const char *s, size_t n);
  50. #endif
  51. #endif