mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 09:27:59 +00:00
Avoid multiply defining {HIGH,LOW}_SURROGATE_{START,END}.
A user reports that under OpenWatcom these are defined in <winnls.h>, in which case it's redundant to redefine them ourselves and provokes a compiler diagnostic.
This commit is contained in:
parent
804ac21381
commit
ba91e4b996
2
putty.h
2
putty.h
@ -2171,10 +2171,12 @@ void request_callback_notifications(toplevel_callback_notify_fn_t notify,
|
||||
#endif
|
||||
|
||||
/* SURROGATE PAIR */
|
||||
#ifndef HIGH_SURROGATE_START /* in some toolchains <winnls.h> defines these */
|
||||
#define HIGH_SURROGATE_START 0xd800
|
||||
#define HIGH_SURROGATE_END 0xdbff
|
||||
#define LOW_SURROGATE_START 0xdc00
|
||||
#define LOW_SURROGATE_END 0xdfff
|
||||
#endif
|
||||
|
||||
/* These macros exist in the Windows API, so the environment may
|
||||
* provide them. If not, define them in terms of the above. */
|
||||
|
Loading…
Reference in New Issue
Block a user