1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-01 03:22:48 -05:00

Remove the switching system in puttyps.h.

It was there because of a limitation of mkfiles.pl, which had a single
list of include directories that it used on all platforms. CMake does
not. So now there's an easier and more sensible way to have a
different header file included on Windows and Unix: call it the same
name in the two subdirectories, and rely on CMake having put the right
one of those subdirs on the include path.
This commit is contained in:
Simon Tatham
2021-04-18 07:58:27 +01:00
parent 1c61fdf800
commit b00e5fb129
4 changed files with 12 additions and 26 deletions

View File

@ -1,9 +1,9 @@
/*
* winstuff.h: Windows-specific inter-module stuff.
* windows/platform.h: Windows-specific inter-module stuff.
*/
#ifndef PUTTY_WINSTUFF_H
#define PUTTY_WINSTUFF_H
#ifndef PUTTY_WINDOWS_PLATFORM_H
#define PUTTY_WINDOWS_PLATFORM_H
#if HAVE_CMAKE_H
#include "cmake.h"
@ -708,4 +708,4 @@ void cli_main_loop(cliloop_pre_t pre, cliloop_post_t post, void *ctx);
bool cliloop_null_pre(void *vctx, const HANDLE **, size_t *);
bool cliloop_null_post(void *vctx, size_t);
#endif
#endif /* PUTTY_WINDOWS_PLATFORM_H */