File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
graalpython/com.oracle.graal.python.cext/include Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2017, 2018 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2017, 2019 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* The Universal Permissive License (UPL), Version 1.0
41
41
#ifndef Py_PYCONFIG_H
42
42
#define Py_PYCONFIG_H
43
43
44
+ // required for __UINT32_MAX__ etc.
45
+ #include <limits.h>
44
46
45
47
// defines based on Clang defines
46
48
#define SIZEOF_DOUBLE __SIZEOF_DOUBLE__
60
62
#define SIZEOF_VOID_P __SIZEOF_POINTER__
61
63
#define SIZEOF_WCHAR_T __SIZEOF_WCHAR_T__
62
64
#define SIZEOF__BOOL 1
63
- #define INT_MIN ((-__INT32_MAX__)-1)
64
- #define INT_MAX __INT32_MAX__
65
+ # ifndef UINT_MAX
65
66
#define UINT_MAX __UINT32_MAX__
67
+ #endif
68
+ # ifndef SHRT_MIN
66
69
#define SHRT_MIN ((-__INT16_MAX__)-1)
70
+ #endif
71
+ # ifndef SHRT_MAX
67
72
#define SHRT_MAX __INT16_MAX__
73
+ #endif
74
+ # ifndef USHRT_MAX
68
75
#define USHRT_MAX __UINT16_MAX__
76
+ #endif
77
+ # ifndef CHAR_BIT
69
78
#define CHAR_BIT __CHAR_BIT__
79
+ #endif
70
80
// #define Py_LIMITED_API 1
71
81
#define _Py_BEGIN_SUPPRESS_IPH
72
82
#define _Py_END_SUPPRESS_IPH
You can’t perform that action at this time.
0 commit comments