tree.h & maps.h: adding_COSMO_SOURCE guard

This commit is contained in:
Alan Newton 2025-02-07 15:45:52 -08:00
parent 7f6a7d6fff
commit 94145880d3
2 changed files with 4 additions and 0 deletions

View file

@ -1,3 +1,4 @@
#ifdef _COSMO_SOURCE
#ifndef COSMOPOLITAN_MAPS_H_
#define COSMOPOLITAN_MAPS_H_
#include "libc/intrin/atomic.h"
@ -138,3 +139,4 @@ static inline bool __maps_isalloc(struct Map *map) {
COSMOPOLITAN_C_END_
#endif /* COSMOPOLITAN_MAPS_H_ */
#endif /* _COSMO_SOURCE */

View file

@ -1,3 +1,4 @@
#ifdef _COSMO_SOURCE
#ifndef COSMOPOLITAN_TREE_H_
#define COSMOPOLITAN_TREE_H_
#define tree_first __tree_first
@ -132,3 +133,4 @@ void tree_insert(struct Tree **, struct Tree *, tree_cmp_f *) libcesque;
COSMOPOLITAN_C_END_
#endif /* COSMOPOLITAN_TREE_H_ */
#endif /* _COSMO_SOURCE */