Skip to content
6 changes: 3 additions & 3 deletions Include/datetime.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* datetime.h
*/
#ifndef Py_LIMITED_API
#ifndef DATETIME_H
#define DATETIME_H
#ifndef Py_DATETIME_H
#define Py_DATETIME_H
#ifdef __cplusplus
extern "C" {
#endif
Expand Down Expand Up @@ -263,5 +263,5 @@ static PyDateTime_CAPI *PyDateTimeAPI = NULL;
#ifdef __cplusplus
}
#endif
#endif
#endif /* !Py_DATETIME_H */
#endif /* !Py_LIMITED_API */
4 changes: 2 additions & 2 deletions Include/internal/mimalloc/mimalloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ terms of the MIT license. A copy of the license can be found in the file
"LICENSE" at the root of this distribution.
-----------------------------------------------------------------------------*/
#pragma once
#ifndef MIMALLOC_H
#define MIMALLOC_H
#ifndef Py_MIMALLOC_H
#define Py_MIMALLOC_H

#define MI_MALLOC_VERSION 212 // major + 2 digits minor

Expand Down
6 changes: 3 additions & 3 deletions Include/internal/mimalloc/mimalloc/atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ terms of the MIT license. A copy of the license can be found in the file
"LICENSE" at the root of this distribution.
-----------------------------------------------------------------------------*/
#pragma once
#ifndef MIMALLOC_ATOMIC_H
#define MIMALLOC_ATOMIC_H
#ifndef Py_MIMALLOC_ATOMIC_H
#define Py_MIMALLOC_ATOMIC_H

// --------------------------------------------------------------------------------------------
// Atomics
Expand Down Expand Up @@ -389,4 +389,4 @@ static inline void mi_atomic_yield(void) {
#endif


#endif // __MIMALLOC_ATOMIC_H
#endif // Py_MIMALLOC_ATOMIC_H
4 changes: 2 additions & 2 deletions Include/internal/mimalloc/mimalloc/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ terms of the MIT license. A copy of the license can be found in the file
"LICENSE" at the root of this distribution.
-----------------------------------------------------------------------------*/
#pragma once
#ifndef MIMALLOC_INTERNAL_H
#define MIMALLOC_INTERNAL_H
#ifndef Py_MIMALLOC_INTERNAL_H
#define Py_MIMALLOC_INTERNAL_H


// --------------------------------------------------------------------------
Expand Down
6 changes: 3 additions & 3 deletions Include/internal/mimalloc/mimalloc/prim.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ terms of the MIT license. A copy of the license can be found in the file
"LICENSE" at the root of this distribution.
-----------------------------------------------------------------------------*/
#pragma once
#ifndef MIMALLOC_PRIM_H
#define MIMALLOC_PRIM_H
#ifndef Py_MIMALLOC_PRIM_H
#define Py_MIMALLOC_PRIM_H


// --------------------------------------------------------------------------
Expand Down Expand Up @@ -326,4 +326,4 @@ static inline mi_heap_t* mi_prim_get_default_heap(void) {



#endif // MIMALLOC_PRIM_H
#endif // Py_MIMALLOC_PRIM_H
4 changes: 2 additions & 2 deletions Include/internal/mimalloc/mimalloc/track.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ terms of the MIT license. A copy of the license can be found in the file
"LICENSE" at the root of this distribution.
-----------------------------------------------------------------------------*/
#pragma once
#ifndef MIMALLOC_TRACK_H
#define MIMALLOC_TRACK_H
#ifndef Py_MIMALLOC_TRACK_H
#define Py_MIMALLOC_TRACK_H

/* ------------------------------------------------------------------------------------------------------
Track memory ranges with macros for tools like Valgrind address sanitizer, or other memory checkers.
Expand Down
4 changes: 2 additions & 2 deletions Include/internal/mimalloc/mimalloc/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ terms of the MIT license. A copy of the license can be found in the file
"LICENSE" at the root of this distribution.
-----------------------------------------------------------------------------*/
#pragma once
#ifndef MIMALLOC_TYPES_H
#define MIMALLOC_TYPES_H
#ifndef Py_MIMALLOC_TYPES_H
#define Py_MIMALLOC_TYPES_H

// --------------------------------------------------------------------------
// This file contains the main type definitions for mimalloc:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Rename the head including control macros which do not start with "Py"
Loading