WinSDK stdlib.h has only abs function for int, long, long long and __int64 parameteres, cstdlib has the abs function with a double parameter

This commit is contained in:
Angel Sánchez 2018-05-31 14:00:35 +02:00
parent 258311cec2
commit 7125608904
2 changed files with 7 additions and 0 deletions

View File

@ -47,7 +47,11 @@
#include <stdio.h>
#include <string.h>
#if _MSC_VER
#include <cstdlib>
#else
#include <stdlib.h>
#endif
#include <math.h>
#include <vips/vips.h>

View File

@ -102,6 +102,9 @@
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif /*HAVE_UNISTD_H*/
#ifdef HAVE_IO_H
#include <io.h>
#endif /*HAVE_IO_H*/
#include <vips/vips.h>
#include <vips/internal.h>