PageRenderTime 89ms CodeModel.GetById 78ms app.highlight 8ms RepoModel.GetById 1ms app.codeStats 0ms

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