Merge pull request #228 from evanmiller/no-math

Remove math.h
This commit is contained in:
Evan Miller 2020-12-21 15:34:16 -05:00 committed by GitHub
commit 8dd10d332e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 3 deletions

View File

@ -20,7 +20,6 @@
#define _XOPEN_SOURCE
#include <time.h>
#include <math.h>
#define OFFSET_MASK 0x1fff
#define OLE_BUFFER_SIZE (MDB_BIND_SIZE*64)
@ -878,7 +877,7 @@ mdb_date_to_tm(double td, struct tm *t)
yr = 1;
day = (long)(td);
time = (long)(fabs(td - day) * 86400.0 + 0.5);
time = (long)((td - day) * 86400.0 + 0.5);
t->tm_hour = time / 3600;
t->tm_min = (time / 60) % 60;
t->tm_sec = time % 60;

View File

@ -17,7 +17,6 @@
*/
#include <time.h>
#include <math.h>
#include <inttypes.h>
#include "mdbtools.h"