More Windows (VS) fixes
This commit is contained in:
parent
161b1bfdf7
commit
5ea38d1377
1
hmt.c
1
hmt.c
|
@ -5,7 +5,6 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <strings.h>
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
#include "lint.h"
|
#include "lint.h"
|
||||||
|
|
6
hmt.h
6
hmt.h
|
@ -1,5 +1,11 @@
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
#include <windows.h>
|
||||||
|
#define MAXPATHLEN MAX_PATH
|
||||||
|
#else
|
||||||
|
#include <strings.h>
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
enum hmt_attribute {
|
enum hmt_attribute {
|
||||||
HMTA_ENCRYPTED = 0,
|
HMTA_ENCRYPTED = 0,
|
||||||
|
|
2
util.c
2
util.c
|
@ -9,7 +9,9 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#ifndef _WIN32
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#endif
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
Loading…
Reference in New Issue