Mercurial > hg > minc-tools
changeset 1895:74e90ac95a60
Fixed config.h for Win32
author | bert <bert> |
---|---|
date | Mon, 01 Nov 2004 22:21:42 +0000 |
parents | 36beb39a0af4 |
children | d7f6c477082e |
files | libsrc/config.h.msvc-win32 |
diffstat | 1 files changed, 31 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
new file mode 100644 --- /dev/null +++ b/libsrc/config.h.msvc-win32 @@ -0,0 +1,31 @@ +/* Win32 config.h for MINC + * + * Author: Bert Vincent + * + * $Header: /private-cvsroot/minc/libsrc/config.h.msvc-win32,v 6.1 2004-11-01 22:21:42 bert Exp $ + */ + +#define HAVE_FCNTL_H 1 +#define HAVE_FLOAT_H 1 +#define HAVE_MEMORY_H 1 +#define HAVE_STDINT_H 1 +#define HAVE_STDLIB_H 1 +#define HAVE_STRINGS_H 1 +#define HAVE_SYS_STAT_H 1 +#define HAVE_SYS_TYPES_H 1 +#define HAVE_TEMPNAM 1 +#define HAVE_TMPNAM 1 +#define STDC_HEADERS 1 +#define VERSION "1.4" +#define sleep(x) _sleep(x) + +/* Quick implmentation of rint() for Intel, since thoughtless Microsoft + * programmers failed to provide us with one... + */ +__inline double rint(double dblvar) +{ + __asm fld dblvar + __asm frndint + __asm fst dblvar + return dblvar; +}