win32config.h.in
上传用户:sy_wanhua
上传日期:2013-07-25
资源大小:3048k
文件大小:3k
源码类别:

流媒体/Mpeg4/MP4

开发平台:

C/C++

  1. #define HAVE_CTYPE_H
  2. #define HAVE_STDLIB_H
  3. #define HAVE_MALLOC_H
  4. #define HAVE_TIME_H
  5. #define HAVE_FCNTL_H
  6. #define LIBXML_VERSION "@LIBXML_VERSION@"
  7. #include <io.h>
  8. #ifdef INCLUDE_WINSOCK
  9. #include <winsock2.h>
  10. #define EWOULDBLOCK             WSAEWOULDBLOCK
  11. #define EINPROGRESS             WSAEINPROGRESS
  12. #define EALREADY                WSAEALREADY
  13. #define ENOTSOCK                WSAENOTSOCK
  14. #define EDESTADDRREQ            WSAEDESTADDRREQ
  15. #define EMSGSIZE                WSAEMSGSIZE
  16. #define EPROTOTYPE              WSAEPROTOTYPE
  17. #define ENOPROTOOPT             WSAENOPROTOOPT
  18. #define EPROTONOSUPPORT         WSAEPROTONOSUPPORT
  19. #define ESOCKTNOSUPPORT         WSAESOCKTNOSUPPORT
  20. #define EOPNOTSUPP              WSAEOPNOTSUPP
  21. #define EPFNOSUPPORT            WSAEPFNOSUPPORT
  22. #define EAFNOSUPPORT            WSAEAFNOSUPPORT
  23. #define EADDRINUSE              WSAEADDRINUSE
  24. #define EADDRNOTAVAIL           WSAEADDRNOTAVAIL
  25. #define ENETDOWN                WSAENETDOWN
  26. #define ENETUNREACH             WSAENETUNREACH
  27. #define ENETRESET               WSAENETRESET
  28. #define ECONNABORTED            WSAECONNABORTED
  29. #define ECONNRESET              WSAECONNRESET
  30. #define ENOBUFS                 WSAENOBUFS
  31. #define EISCONN                 WSAEISCONN
  32. #define ENOTCONN                WSAENOTCONN
  33. #define ESHUTDOWN               WSAESHUTDOWN
  34. #define ETOOMANYREFS            WSAETOOMANYREFS
  35. #define ETIMEDOUT               WSAETIMEDOUT
  36. #define ECONNREFUSED            WSAECONNREFUSED
  37. #define ELOOP                   WSAELOOP
  38. #define ENAMETOOLONG            WSAENAMETOOLONG
  39. #define EHOSTDOWN               WSAEHOSTDOWN
  40. #define EHOSTUNREACH            WSAEHOSTUNREACH
  41. #define ENOTEMPTY               WSAENOTEMPTY
  42. #define EPROCLIM                WSAEPROCLIM
  43. #define EUSERS                  WSAEUSERS
  44. #define EDQUOT                  WSAEDQUOT
  45. #define ESTALE                  WSAESTALE
  46. #define EREMOTE                 WSAEREMOTE
  47. #endif /* INCLUDE_WINSOCK */
  48. #define HAVE_ISINF                                                              #define HAVE_ISNAN     
  49. #include <math.h>
  50. static int isinf (double d) {
  51.     int expon = 0;
  52.     double val = frexp (d, &expon);
  53.     if (expon == 1025) {
  54.         if (val == 0.5) {
  55.             return 1;
  56.         } else if (val == -0.5) {
  57.             return -1;
  58.         } else {
  59.             return 0;
  60.         }
  61.     } else {
  62.         return 0;
  63.     }
  64. }
  65. static int isnan (double d) {
  66.     int expon = 0;
  67.     double val = frexp (d, &expon);
  68.     if (expon == 1025) {
  69.         if (val == 0.5) {
  70.             return 0;
  71.         } else if (val == -0.5) {
  72.             return 0;
  73.         } else {
  74.             return 1;
  75.         }
  76.     } else {
  77.         return 0;
  78.     }
  79. }