iceoryx2
C++ Language Bindings
Loading...
Searching...
No Matches
platform_correction.hpp
Go to the documentation of this file.
1// Copyright (c) 2020 by Robert Bosch GmbH. All rights reserved.
2// Copyright (c) 2021 - 2022 by Apex.AI Inc. All rights reserved.
3// Copyright (c) 2025 Contributors to the Eclipse Foundation
4//
5// See the NOTICE file(s) distributed with this work for additional
6// information regarding copyright ownership.
7//
8// This program and the accompanying materials are made available under the
9// terms of the Apache Software License 2.0 which is available at
10// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license
11// which is available at https://opensource.org/licenses/MIT.
12//
13// SPDX-License-Identifier: Apache-2.0 OR MIT
14
15// !NO INCLUDE GUARD HERE!
16// We want that these macros are always executed and
17// not just once, otherwise the windows macros are kicking in and nothing
18// compiles
19
20
21// Usage Instructions: This header has to be ALWAYS the last header which
22// is included otherwise some windows header pops up and defines some macros
23
24#if defined(_MSC_VER)
25
26#ifndef __PRETTY_FUNCTION__
27#define __PRETTY_FUNCTION__ __FUNCSIG__
28#endif
29
30#pragma pointers_to_members(full_generality)
31#endif
32
33#if defined(_WIN64) || defined(_WIN32)
34
35#undef max
36#undef min
37
38#endif