mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-08 00:09:31 +03:00
Eliminate '#ifndef' guards
Related to https://github.com/microsoft/mimalloc/issues/40
This commit is contained in:
parent
c6c1d5fffd
commit
f95e1639a4
4 changed files with 0 additions and 17 deletions
|
@ -5,8 +5,6 @@ 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
|
||||
|
||||
// ------------------------------------------------------
|
||||
// Atomics
|
||||
|
@ -172,5 +170,3 @@ static inline uintptr_t mi_atomic_exchange(volatile uintptr_t* p, uintptr_t exch
|
|||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#endif // __MIMALLOC_ATOMIC_H
|
||||
|
|
|
@ -5,8 +5,6 @@ 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
|
||||
|
||||
#include "mimalloc-types.h"
|
||||
|
||||
|
@ -317,6 +315,3 @@ static inline uintptr_t _mi_thread_id() mi_attr_noexcept {
|
|||
return (uintptr_t)&_mi_heap_default;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
@ -5,8 +5,6 @@ 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
|
||||
|
||||
#include <stdlib.h> // size_t etc.
|
||||
#include <stddef.h> // ptrdiff_t
|
||||
|
@ -395,5 +393,3 @@ struct mi_tld_s {
|
|||
mi_os_tld_t os; // os tld
|
||||
mi_stats_t stats; // statistics
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -5,8 +5,6 @@ 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
|
||||
|
||||
#define MI_MALLOC_VERSION 100 // major + 2 digits minor
|
||||
|
||||
|
@ -233,5 +231,3 @@ mi_decl_export void mi_option_set_default(mi_option_t option, long value);
|
|||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue