Hrvoje Niksic <hniksic(a)srce.hr> writes:
greg(a)alphatech.com (Greg Klanderman) writes:
> I'd like to submit a patch to fix the breakage in 21.2 on NT due to my
> user-name completion stuff. the *pwent() functions do not exist on
> NT. Andy - do they exist on CYGWIN? Which is the right pre-processor
> test to use?
Yes they do.
>
> #ifndef WINDOWSNT,
> #ifndef HAVE_MS_WINDOWS,
HAVE_MS_WINDOWS should be used is for distinguishing MS Windows as a
window system, sort of like HAVE_X_WINDOWS is used under Unix.
WINDOWSNT will be defined under the native build, but not under
Cygwin. __CYGWIN32__ should be defined under Cygwin only.
So use WINDOWSNT.
andy