/tools/Ruby/lib/ruby/1.8/i386-mingw32/missing.h

http://github.com/agross/netopenspace · C Header · 149 lines · 92 code · 27 blank · 30 comment · 3 complexity · dbe62ab925d1730089d2370e182c48c4 MD5 · raw file

  1. /************************************************
  2. missing.h - prototype for *.c in ./missing, and
  3. for missing timeval struct
  4. $Author: shyouhei $
  5. $Date: 2010-11-22 16:21:27 +0900 (Mon, 22 Nov 2010) $
  6. created at: Sat May 11 23:46:03 JST 2002
  7. ************************************************/
  8. #ifndef MISSING_H
  9. #define MISSING_H
  10. #if defined(HAVE_SYS_TIME_H)
  11. # include <sys/time.h>
  12. #elif !defined(_WIN32)
  13. # define time_t long
  14. struct timeval {
  15. time_t tv_sec; /* seconds */
  16. time_t tv_usec; /* microseconds */
  17. };
  18. #endif
  19. #if defined(HAVE_SYS_TYPES_H)
  20. # include <sys/types.h>
  21. #endif
  22. #if !defined(HAVE_STRUCT_TIMEZONE)
  23. struct timezone {
  24. int tz_minuteswest;
  25. int tz_dsttime;
  26. };
  27. #endif
  28. #ifndef HAVE_ACOSH
  29. extern double acosh _((double));
  30. extern double asinh _((double));
  31. extern double atanh _((double));
  32. #endif
  33. #ifndef HAVE_CRYPT
  34. extern char *crypt _((const char *, const char *));
  35. #endif
  36. #ifndef HAVE_DUP2
  37. extern int dup2 _((int, int));
  38. #endif
  39. #ifndef HAVE_EACCESS
  40. extern int eaccess _((const char*, int));
  41. #endif
  42. #ifndef HAVE_FINITE
  43. extern int finite _((double));
  44. #endif
  45. #ifndef HAVE_FLOCK
  46. extern int flock _((int, int));
  47. #endif
  48. /*
  49. #ifndef HAVE_FREXP
  50. extern double frexp _((double, int *));
  51. #endif
  52. */
  53. #ifndef HAVE_HYPOT
  54. extern double hypot _((double, double));
  55. #endif
  56. #ifndef HAVE_ERF
  57. extern double erf _((double));
  58. extern double erfc _((double));
  59. #endif
  60. #ifndef HAVE_ISINF
  61. # if defined(HAVE_FINITE) && defined(HAVE_ISNAN)
  62. # define isinf(x) (!finite(x) && !isnan(x))
  63. # else
  64. extern int isinf _((double));
  65. # endif
  66. #endif
  67. #ifndef HAVE_ISNAN
  68. extern int isnan _((double));
  69. #endif
  70. /*
  71. #ifndef HAVE_MEMCMP
  72. extern int memcmp _((char *, char *, int));
  73. #endif
  74. */
  75. #ifndef HAVE_MEMMOVE
  76. extern void *memmove _((void *, void *, int));
  77. #endif
  78. /*
  79. #ifndef HAVE_MODF
  80. extern double modf _((double, double *));
  81. #endif
  82. */
  83. #ifndef HAVE_STRCASECMP
  84. extern int strcasecmp _((char *, char *));
  85. #endif
  86. #ifndef HAVE_STRNCASECMP
  87. extern int strncasecmp _((char *, char *, int));
  88. #endif
  89. #ifndef HAVE_STRCHR
  90. extern char *strchr _((char *, int));
  91. extern char *strrchr _((char *, int));
  92. #endif
  93. #ifndef HAVE_STRERROR
  94. extern char *strerror _((int));
  95. #endif
  96. #ifndef HAVE_STRFTIME
  97. extern size_t strftime _((char *, size_t, const char *, const struct tm *));
  98. #endif
  99. #ifndef HAVE_STRSTR
  100. extern char *strstr _((char *, char *));
  101. #endif
  102. /*
  103. #ifndef HAVE_STRTOL
  104. extern long strtol _((char *, char **, int));
  105. #endif
  106. */
  107. #ifndef HAVE_STRTOUL
  108. extern unsigned long strtoul _((char *, char **, int));
  109. #endif
  110. #ifndef HAVE_VSNPRINTF
  111. # ifdef HAVE_STDARG_PROTOTYPES
  112. # include <stdarg.h>
  113. # else
  114. # include <varargs.h>
  115. # endif
  116. extern int snprintf __((char *, size_t n, char const *, ...));
  117. extern int vsnprintf _((char *, size_t n, char const *, va_list));
  118. #endif
  119. #endif /* MISSING_H */