1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-06-30 19:12: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,5 +1,9 @@
#ifndef PUTTY_UNIX_H
#define PUTTY_UNIX_H
/*
* unix/platform.h: Unix-specific inter-module stuff.
*/
#ifndef PUTTY_UNIX_PLATFORM_H
#define PUTTY_UNIX_PLATFORM_H
#if HAVE_CMAKE_H
#include "cmake.h"
@ -457,4 +461,4 @@ bool cliloop_no_pw_setup(void *ctx, pollwrapper *pw);
void cliloop_no_pw_check(void *ctx, pollwrapper *pw);
bool cliloop_always_continue(void *ctx, bool, bool);
#endif /* PUTTY_UNIX_H */
#endif /* PUTTY_UNIX_PLATFORM_H */