[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-dev] Mingw ann non-autoconf build
I have a question regarding src/win32/orconfig.h. I guess this hand-
edited file is supposed to be used by MSVC (targeting Win32, WinCE and
whatnot). Or? What prevents it from being used by e.g. MingW in a non-
autoconf build?
If someone (like me that doesn't want to touch autotool with a ten-feet
pole) want to use this file unchanged, things like:
#undef HAVE_SYS_TIME_H
has to be treated specifically for MingW. E.g.:
#ifndef __MINGW32__
#undef HAVE_SYS_TIME_H
#endif
Same goes for HAVE_UNISTD_H, HAVE_GETTTIMEOFDAY etc.
BTW. Older MingW does not have gettimeofday(). I'm not sure
when the function was added. So to be perfect, an "#ifndef" test
should consider the __MINGW32_VERSION too.
--gv
For every credibility gap, there is a gullibility fill.
_______________________________________________
tor-dev mailing list
tor-dev@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev