6 printf(
"Active defines:\n");
11 printf(
" GLib_WIN32\n");
14 printf(
" GLib_WIN64\n");
17 printf(
" GLib_UNIX\n");
20 printf(
" GLib_LINUX\n");
23 printf(
" GLib_SOLARIS\n");
26 printf(
" GLib_MSC\n");
29 printf(
" GLib_CYGWIN\n");
32 printf(
" GLib_BCB\n");
35 printf(
" GLib_GCC\n");
38 printf(
" GLib_MACOSX\n");
41 printf(
" GLib_64Bit\n");
44 printf(
" GLib_32Bit\n");
47 printf(
" GLib_GLIBC\n");
50 printf(
" GLib_POSIX_1j\n");
54 #if defined(GLib_UNIX) && ! defined(GLib_CYGWIN)
58 #if defined(WIN32_LEAN_AND_MEAN)
59 int gettimeofday(
struct timeval * tp,
struct timezone * tzp)
62 static const uint64_t EPOCH = ((uint64_t) 116444736000000000ULL);
64 SYSTEMTIME system_time;
68 GetSystemTime( &system_time );
69 SystemTimeToFileTime( &system_time, &file_time );
70 time = ((uint64_t)file_time.dwLowDateTime ) ;
71 time += ((uint64_t)file_time.dwHighDateTime) << 32;
73 tp->tv_sec = (long) ((time - EPOCH) / 10000000L);
74 tp->tv_usec = (long) (system_time.wMilliseconds * 1000);