libsir 2.2.5
Standard Incident Reporter
Loading...
Searching...
No Matches
platform_embarcadero.h
1/*
2 * platform_embarcadero.h
3 *
4 * Version: 2.2.5
5 *
6 * -----------------------------------------------------------------------------
7 *
8 * SPDX-License-Identifier: MIT
9 *
10 * Copyright (c) 2018-2024 Jeffrey H. Johnson <trnsz@pobox.com>
11 *
12 * Permission is hereby granted, free of charge, to any person obtaining a copy of
13 * this software and associated documentation files (the "Software"), to deal in
14 * the Software without restriction, including without limitation the rights to
15 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
16 * the Software, and to permit persons to whom the Software is furnished to do so,
17 * subject to the following conditions:
18 *
19 * The above copyright notice and this permission notice shall be included in all
20 * copies or substantial portions of the Software.
21 *
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
24 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
25 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
26 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
27 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28 *
29 * -----------------------------------------------------------------------------
30 */
31
32#ifndef _SIR_PLATFORM_EMBARCADERO_H_INCLUDED
33# define _SIR_PLATFORM_EMBARCADERO_H_INCLUDED
34
35# if (defined(__TURBOC__) || defined(__BORLANDC__) || \
36 defined(__BCPLUSPLUS__) || defined(__CODEGEARC__))
37# if !defined(__EMBARCADEROC__)
38# define __EMBARCADEROC__
39# endif
40# if !defined(SIR_MSVCRT_MINGW)
41# define SIR_MSVCRT_MINGW
42# endif
43# undef __HAVE_STDC_SECURE_OR_EXT1__
44# if defined(__UINTPTR_FMTx__)
45# define SIR_UIPTRx __UINTPTR_FMTx__
46# elif defined(PRIxPTR)
47# define SIR_UIPTRx PRIxPTR
48# endif
49# if defined(SIR_UIPTRx)
50# undef PRIxPTR
51# define PRIxPTR SIR_UIPTRx
52# endif
53# if defined(__UINTPTR_FMTX__)
54# define SIR_UIPTRX __UINTPTR_FMTX__
55# elif defined(PRIXPTR)
56# define SIR_UIPTRx PRIXPTR
57# endif
58# if defined(SIR_UIPTRX)
59# undef PRIXPTR
60# define PRIXPTR SIR_UIPTRX
61# endif
62# if defined(__clang_major__)
63# if defined(SIR_PTHREAD_GETNAME_NP) && (__clang_major__ >= 15)
64# undef SIR_PTHREAD_GETNAME_NP
65# endif
66# else
67# define __clang_major__ 0
68# endif
69# endif
70
71#endif /* !_SIR_PLATFORM_EMBARCADERO_H_INCLUDED */