[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: syncing Emacs from sources maintained elsewhere

From: Eli Zaretskii
Subject: Re: syncing Emacs from sources maintained elsewhere
Date: Sat, 29 Jan 2011 12:24:02 +0200

> From: Simon Josefsson <address@hidden>
> Cc: Eric Blake <address@hidden>, address@hidden, address@hidden,
>         address@hidden, address@hidden
> Date: Sat, 29 Jan 2011 10:32:32 +0100
> Maybe gnulib's posix library could be used here?  I.e., ask MSVC users
> to install that first, so that the system has proper getopt.h etc.
> Btw, in Libidn I ship a win32/ sub-directory that has MSVC project files
> and hand-written header files (e.g., stdbool.h, unistd.h) because I
> could never get gnulib and MSVC to co-exist.

Emacs uses a combination of these two techniques, but until now we
managed to have almost the same workarounds and headers for both MinGW
and MSVC.  E.g., unistd.h is not used at all (although MinGW does have
it); instead, all the necessary stuff is defined in the
Windows-specific config.h file.  There's a Windows-specific nt/
subdirectory where we put headers and source files that define
suitable replacements for missing Posix headers and functions.

It would make sense to have MSVC-specific replacements there as well,
once it becomes impossible to keep it and MinGW together.

Thanks for the feedback.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]