123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- #ifndef _MYSQLND_CONFIG_WIN_H
- #define _MYSQLND_CONFIG_WIN_H
- #include <sys/locking.h>
- #include <windows.h>
- #include <math.h> /* Because of rint() */
- #include <fcntl.h>
- #include <io.h>
- #include <malloc.h>
- #include <stdint.h>
- #ifndef HAVE_INT8_T
- #define HAVE_INT8_T
- #endif
- #ifndef HAVE_UINT8_T
- #define HAVE_UINT8_T
- #endif
- #ifndef HAVE_INT16_T
- #define HAVE_INT16_T
- #endif
- #ifndef HAVE_UINT16_T
- #define HAVE_UINT16_T
- #endif
- #ifndef HAVE_INT32_T
- #define HAVE_INT32_T
- #endif
- #ifndef HAVE_UINT32_T
- #define HAVE_UINT32_T
- #endif
- #ifndef HAVE_INT64_T
- #define HAVE_INT64_T
- #endif
- #ifndef HAVE_UINT64_T
- #define HAVE_UINT64_T
- #endif
- #ifndef _WIN64
- #ifndef _WIN32
- #define _WIN32
- #endif
- #ifndef __WIN32__
- #define __WIN32__
- #endif
- #endif /* _WIN64 */
- #ifndef __WIN__
- #define __WIN__ /* To make it easier in VC++ */
- #endif
- /* Type information */
- #define SIZEOF_LONG 4
- #define SIZEOF_LONG_LONG 8
- #ifndef _WIN64
- #define sint2korr ))
- #define sint3korr [2]) & 128) ? \
- 255L << 24) | \
- [2]) << 16) |\
- [1]) << 8) | \
- [0])) : \
- [2]) << 16) |\
- [1]) << 8) | \
- [0])))
- #define sint4korr ))
- #define uint2korr ))
- #define uint3korr ) & 0xFFFFFF)
- #define uint4korr ))
- #define uint5korr [0])) +\
- [1])) << 8) +\
- [2])) << 16) +\
- [3])) << 24)) +\
- [4])) << 32))
- #define uint8korr ))
- #define sint8korr ))
- #define int2store * )=
- #define int3store { *= );\
- *= >> 8));\
- *= >> 16)); }
- #define int4store * )=
- #define int5store { *= );\
- *+1)= >> 8));\
- *+2)= >> 16));\
- *+3)= >> 24)); \
- *+4)= >> 32)); }
- #define int8store * )=
- #define float8get { * &V) = * M); \
- * &V)+1) = * M)+1); }
- #define float8store { * T) = * &V); \
- * T)+1) = * &V)+1); }
- #define float4get { * &) = * ); }
- #endif /* _WIN64 */
- #endif /* _MYSQLND_CONFIG_WIN_H */
|