ares_platform.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef HEADER_CARES_PLATFORM_H
  2. #define HEADER_CARES_PLATFORM_H
  3. /* Copyright 1998 by the Massachusetts Institute of Technology.
  4. * Copyright (C) 2004 - 2011 by Daniel Stenberg et al
  5. *
  6. * Permission to use, copy, modify, and distribute this
  7. * software and its documentation for any purpose and without
  8. * fee is hereby granted, provided that the above copyright
  9. * notice appear in all copies and that both that copyright
  10. * notice and this permission notice appear in supporting
  11. * documentation, and that the name of M.I.T. not be used in
  12. * advertising or publicity pertaining to distribution of the
  13. * software without specific, written prior permission.
  14. * M.I.T. makes no representations about the suitability of
  15. * this software for any purpose. It is provided "as is"
  16. * without express or implied warranty.
  17. */
  18. #include "ares_setup.h"
  19. #if defined(WIN32) && !defined(MSDOS)
  20. typedef enum {
  21. WIN_UNKNOWN,
  22. WIN_3X,
  23. WIN_9X,
  24. WIN_NT,
  25. WIN_CE
  26. } win_platform;
  27. win_platform ares__getplatform(void);
  28. #endif
  29. #if defined(_WIN32_WCE)
  30. struct servent *getservbyport(int port, const char *proto);
  31. #endif
  32. #endif /* HEADER_CARES_PLATFORM_H */