mirror of
https://github.com/CLIUtils/CLI11.git
synced 2025-04-29 20:23:55 +00:00
* Add unicode support tests * Add unicode parse tests * Implement #14 * Slim down Windows.h * Fix documentation comments * Fix clang-tidy and cpplint * Update README * Fix clang-tidy * Fix to_path not being available on linux * Add roundtrip encoding tests * style: pre-commit.ci fixes * Fix pre-commit.ci * Fix codacy * Exclude parse_unicode which should not contain a newline from pre-commit * Remove a test which breaks CI * Fix build in CI * Replace broken execute_with tests * Fix wide string conversions on all systems * Fix system args on apple * style: pre-commit.ci fixes * Fix some includes * Fix wrong size calculation and comments * Add guards around codecvt * Fix _Pragma not recognized on MSVC * Fix bad macro check * Fix include * Fix narrow and widen when codecvt is missing * Fix some weird bug in old MSVC * Add dependent applications to meson-build * Fix precompilation * Fix lint * Fix coverage * Update README * style: pre-commit.ci fixes * Fix lint * Fix coverage * Fix optional braces offending clang * Remove copied comments from Windows.h * Suppress flawfinder detects * Fix cmake config tests failing because of a missing lib * chore: update copyright on new files to 2023 Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> * style: pre-commit.ci fixes Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Henry Schreiner <henryschreineriii@gmail.com>
102 lines
1.9 KiB
C++
102 lines
1.9 KiB
C++
// Copyright (c) 2017-2023, University of Cincinnati, developed by Henry Schreiner
|
|
// under NSF AWARD 1414736 and by the respective contributors.
|
|
// All rights reserved.
|
|
//
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
#pragma once
|
|
// [CLI11:slim_windows_h_hpp:verbatim]
|
|
#ifdef _WIN32
|
|
// The most slimmed-down version of Windows.h.
|
|
#define WIN32_LEAN_AND_MEAN
|
|
#define WIN32_EXTRA_LEAN
|
|
|
|
// Enable components based on necessity.
|
|
#define NOGDICAPMASKS
|
|
#define NOVIRTUALKEYCODES
|
|
#define NOWINMESSAGES
|
|
#define NOWINSTYLES
|
|
#define NOSYSMETRICS
|
|
#define NOMENUS
|
|
#define NOICONS
|
|
#define NOKEYSTATES
|
|
#define NOSYSCOMMANDS
|
|
#define NORASTEROPS
|
|
#define NOSHOWWINDOW
|
|
#define OEMRESOURCE
|
|
#define NOATOM
|
|
#define NOCLIPBOARD
|
|
#define NOCOLOR
|
|
#define NOCTLMGR
|
|
#define NODRAWTEXT
|
|
#define NOGDI
|
|
#define NOKERNEL
|
|
#define NOUSER
|
|
#define NONLS
|
|
#define NOMB
|
|
#define NOMEMMGR
|
|
#define NOMETAFILE
|
|
#define NOMINMAX
|
|
#define NOMSG
|
|
#define NOOPENFILE
|
|
#define NOSCROLL
|
|
#define NOSERVICE
|
|
#define NOSOUND
|
|
#define NOTEXTMETRIC
|
|
#define NOWH
|
|
#define NOWINOFFSETS
|
|
#define NOCOMM
|
|
#define NOKANJI
|
|
#define NOHELP
|
|
#define NOPROFILER
|
|
#define NODEFERWINDOWPOS
|
|
#define NOMCX
|
|
|
|
#include "Windows.h"
|
|
|
|
#undef WIN32_LEAN_AND_MEAN
|
|
#undef WIN32_EXTRA_LEAN
|
|
|
|
#undef NOGDICAPMASKS
|
|
#undef NOVIRTUALKEYCODES
|
|
#undef NOWINMESSAGES
|
|
#undef NOWINSTYLES
|
|
#undef NOSYSMETRICS
|
|
#undef NOMENUS
|
|
#undef NOICONS
|
|
#undef NOKEYSTATES
|
|
#undef NOSYSCOMMANDS
|
|
#undef NORASTEROPS
|
|
#undef NOSHOWWINDOW
|
|
#undef OEMRESOURCE
|
|
#undef NOATOM
|
|
#undef NOCLIPBOARD
|
|
#undef NOCOLOR
|
|
#undef NOCTLMGR
|
|
#undef NODRAWTEXT
|
|
#undef NOGDI
|
|
#undef NOKERNEL
|
|
#undef NOUSER
|
|
#undef NONLS
|
|
#undef NOMB
|
|
#undef NOMEMMGR
|
|
#undef NOMETAFILE
|
|
#undef NOMINMAX
|
|
#undef NOMSG
|
|
#undef NOOPENFILE
|
|
#undef NOSCROLL
|
|
#undef NOSERVICE
|
|
#undef NOSOUND
|
|
#undef NOTEXTMETRIC
|
|
#undef NOWH
|
|
#undef NOWINOFFSETS
|
|
#undef NOCOMM
|
|
#undef NOKANJI
|
|
#undef NOHELP
|
|
#undef NOPROFILER
|
|
#undef NODEFERWINDOWPOS
|
|
#undef NOMCX
|
|
|
|
#endif // _WIN32
|
|
// [CLI11:slim_windows_h_hpp:end]
|