More Windows (VS) fixes

This commit is contained in:
HummyPkg 2019-03-08 08:04:36 +00:00
parent 161b1bfdf7
commit 5ea38d1377
3 changed files with 8 additions and 1 deletions

1
hmt.c
View File

@ -5,7 +5,6 @@
#include <string.h>
#include <stdlib.h>
#include <stdint.h>
#include <strings.h>
#include <time.h>
#include "lint.h"

6
hmt.h
View File

@ -1,5 +1,11 @@
#ifdef _WIN32
#include <windows.h>
#define MAXPATHLEN MAX_PATH
#else
#include <strings.h>
#include <sys/param.h>
#endif
enum hmt_attribute {
HMTA_ENCRYPTED = 0,

2
util.c
View File

@ -9,7 +9,9 @@
#include <string.h>
#include <stdlib.h>
#include <stdint.h>
#ifndef _WIN32
#include <unistd.h>
#endif
#include <time.h>
#include <strings.h>
#include <stdarg.h>