restore include paths for cross-platform builds because i messed absolutely every #include up. dont worry that everything is modified, all i did was normalize line endings because CLRF snuck into the repo and this prevents fake diffs

This commit is contained in:
2026-03-24 19:07:55 -04:00
parent 7d485fdcd7
commit bfecad40be
1340 changed files with 264990 additions and 264996 deletions

View File

@@ -1,56 +1,56 @@
#ifndef __GET_TIME_OF_DAY_H
#define __GET_TIME_OF_DAY_H
#if defined(_WIN32) && !defined(__GNUC__) &&!defined(__GCCXML__)
#include < time.h >
struct timezone
{
int tz_minuteswest; /* minutes W of Greenwich */
int tz_dsttime; /* type of dst correction */
};
int gettimeofday(struct timeval *tv, struct timezone *tz);
#else
#include <sys/time.h>
#include <unistd.h>
// Uncomment this if you need to
/*
// http://www.halcode.com/archives/2008/08/26/retrieving-system-time-gettimeofday/
struct timezone
{
int tz_minuteswest;
int tz_dsttime;
};
#ifdef __cplusplus
void GetSystemTimeAsFileTime(FILETIME*);
inline int gettimeofday(struct timeval* p, void* tz )
{
union {
long long ns100; // time since 1 Jan 1601 in 100ns units
FILETIME ft;
} now;
GetSystemTimeAsFileTime( &(now.ft) );
p->tv_usec=(long)((now.ns100 / 10LL) % 1000000LL );
p->tv_sec= (long)((now.ns100-(116444736000000000LL))/10000000LL);
return 0;
}
#else
int gettimeofday(struct timeval* p, void* tz );
#endif
*/
#endif
#endif
#ifndef __GET_TIME_OF_DAY_H
#define __GET_TIME_OF_DAY_H
#if defined(_WIN32) && !defined(__GNUC__) &&!defined(__GCCXML__)
#include < time.h >
struct timezone
{
int tz_minuteswest; /* minutes W of Greenwich */
int tz_dsttime; /* type of dst correction */
};
int gettimeofday(struct timeval *tv, struct timezone *tz);
#else
#include <sys/time.h>
#include <unistd.h>
// Uncomment this if you need to
/*
// http://www.halcode.com/archives/2008/08/26/retrieving-system-time-gettimeofday/
struct timezone
{
int tz_minuteswest;
int tz_dsttime;
};
#ifdef __cplusplus
void GetSystemTimeAsFileTime(FILETIME*);
inline int gettimeofday(struct timeval* p, void* tz )
{
union {
long long ns100; // time since 1 Jan 1601 in 100ns units
FILETIME ft;
} now;
GetSystemTimeAsFileTime( &(now.ft) );
p->tv_usec=(long)((now.ns100 / 10LL) % 1000000LL );
p->tv_sec= (long)((now.ns100-(116444736000000000LL))/10000000LL);
return 0;
}
#else
int gettimeofday(struct timeval* p, void* tz );
#endif
*/
#endif
#endif