Eneboo - Documentación para desarrolladores
src/libxslt/libxslt/win32config.h
Ir a la documentación de este archivo.
00001 /*
00002  * Summary: Windows configuration header
00003  * Description: Windows configuration header
00004  *
00005  * Copy: See Copyright for the status of this software.
00006  *
00007  * Author: Igor Zlatkovic
00008  */
00009 #ifndef __LIBXSLT_WIN32_CONFIG__
00010 #define __LIBXSLT_WIN32_CONFIG__
00011 
00012 #define HAVE_CTYPE_H 1
00013 #define HAVE_STDLIB_H 1
00014 #define HAVE_STDARG_H 1
00015 #define HAVE_MALLOC_H 1
00016 #define HAVE_TIME_H 1
00017 #define HAVE_LOCALTIME 1
00018 #define HAVE_GMTIME 1
00019 #define HAVE_TIME 1
00020 #define HAVE_MATH_H 1
00021 #define HAVE_FCNTL_H 1
00022 
00023 #include <io.h>
00024 
00025 #define HAVE_ISINF
00026 #define HAVE_ISNAN
00027 
00028 #include <math.h>
00029 #if defined _MSC_VER || defined __MINGW32__
00030 /* MS C-runtime has functions which can be used in order to determine if
00031    a given floating-point variable contains NaN, (+-)INF. These are 
00032    preferred, because floating-point technology is considered propriatary
00033    by MS and we can assume that their functions know more about their 
00034    oddities than we do. */
00035 #include <float.h>
00036 /* Bjorn Reese figured a quite nice construct for isinf() using the 
00037    _fpclass() function. */
00038 #ifndef isinf
00039 #define isinf(d) ((_fpclass(d) == _FPCLASS_PINF) ? 1 \
00040         : ((_fpclass(d) == _FPCLASS_NINF) ? -1 : 0))
00041 #endif
00042 /* _isnan(x) returns nonzero if (x == NaN) and zero otherwise. */
00043 #ifndef isnan
00044 #define isnan(d) (_isnan(d))
00045 #endif
00046 #else /* _MSC_VER */
00047 static int isinf (double d) {
00048     int expon = 0;
00049     double val = frexp (d, &expon);
00050     if (expon == 1025) {
00051         if (val == 0.5) {
00052             return 1;
00053         } else if (val == -0.5) {
00054             return -1;
00055         } else {
00056             return 0;
00057         }
00058     } else {
00059         return 0;
00060     }
00061 }
00062 static int isnan (double d) {
00063     int expon = 0;
00064     double val = frexp (d, &expon);
00065     if (expon == 1025) {
00066         if (val == 0.5) {
00067             return 0;
00068         } else if (val == -0.5) {
00069             return 0;
00070         } else {
00071             return 1;
00072         }
00073     } else {
00074         return 0;
00075     }
00076 }
00077 #endif /* _MSC_VER */
00078 
00079 #include <direct.h>
00080 #if defined(_MSC_VER) || defined(__MINGW32__)
00081 #define mkdir(p,m) _mkdir(p)
00082 #define snprintf _snprintf
00083 #if _MSC_VER < 1500
00084 #define vsnprintf(b,c,f,a) _vsnprintf(b,c,f,a)
00085 #endif
00086 #endif
00087 
00088 #define HAVE_SYS_STAT_H
00089 #define HAVE__STAT
00090 #define HAVE_STRING_H
00091 
00092 #include <libxml/xmlversion.h>
00093 
00094 #ifndef ATTRIBUTE_UNUSED
00095 #define ATTRIBUTE_UNUSED
00096 #endif
00097 
00098 #define _WINSOCKAPI_
00099 
00100 #endif /* __LIBXSLT_WIN32_CONFIG__ */
00101 
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'