aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/python3/Include/pyconfig.h
blob: b698ae7bc51e377678134b05ae9724370bc1ecaa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#pragma once

#if defined(Py_BUILD_CORE) || defined(Py_BUILD_CORE_BUILTIN) || defined(Py_BUILD_CORE_MODULE)

#define ABIFLAGS ""

// Need for Modules/getpath.c
#define PREFIX "/var/empty"
#define EXEC_PREFIX "/var/empty"
#define VERSION "3.12"
#define VPATH ""
#define PLATLIBDIR "lib"

#define USE_ZLIB_CRC32

#if defined(__linux__)
#   define PLATFORM "linux"
#   define MULTIARCH "x86_64-linux-gnu"
#   define SOABI "cpython-312-x86_64-linux-gnu"
#elif defined(__APPLE__)
#   define PLATFORM "darwin"
#   define MULTIARCH "darwin"
#   define SOABI "cpython-312-darwin"
#endif

#endif

#if defined(__linux__)
#include "pyconfig-linux.h"
#endif

#if defined(__APPLE__) && (defined(__aarch64__) || defined(_M_ARM64))
#   include "pyconfig-osx-arm64.h"
#elif defined(__APPLE__) && (defined(__x86_64__) || defined(_M_X64))
#   include "pyconfig-osx-x86_64.h"
#endif

#if defined(_MSC_VER)
#define NTDDI_VERSION 0x06020000
#define _WIN32_WINNT 0x0602
#define Py_NO_ENABLE_SHARED
#include "../PC/pyconfig.h"
#endif

#if defined(_musl_)
#include "pyconfig-musl.h"
#endif

#if !defined(NDEBUG) && !defined(Py_DEBUG) && !defined(Py_LIMITED_API) && !defined(DISABLE_PYDEBUG)
#define Py_DEBUG
#define GC_NDEBUG
#endif