diff options
author | Tobias Burnus <tobias@codesourcery.com> | 2022-08-17 15:36:41 +0200 |
---|---|---|
committer | Tobias Burnus <tobias@codesourcery.com> | 2022-08-17 15:36:41 +0200 |
commit | 6b4e49fdfcc9bff5459d5a821dd7e9476c7c1c10 (patch) | |
tree | a81380afca86d0f22bfdcdbb190d8388a9a6cecf /libgomp | |
parent | 92a5de3df2dc958d6b3d18a0466189ad31f5ae79 (diff) | |
download | gcc-6b4e49fdfcc9bff5459d5a821dd7e9476c7c1c10.zip gcc-6b4e49fdfcc9bff5459d5a821dd7e9476c7c1c10.tar.gz gcc-6b4e49fdfcc9bff5459d5a821dd7e9476c7c1c10.tar.bz2 |
libgomp/splay-tree.h: Fix splay_tree_prefix handling
When splay_tree_prefix is defined, the .h file
defines splay_* macros to add the prefix. However,
before those were only unset when additionally
splay_tree_c was defined.
Additionally, for consistency undefine splay_tree_c
also when no splay_tree_prefix is defined - there
is no interdependence either.
libgomp/ChangeLog:
* splay-tree.h: Fix splay_* macro unsetting if
splay_tree_prefix is defined.
Diffstat (limited to 'libgomp')
-rw-r--r-- | libgomp/splay-tree.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/libgomp/splay-tree.h b/libgomp/splay-tree.h index 8d66dfb..992381c 100644 --- a/libgomp/splay-tree.h +++ b/libgomp/splay-tree.h @@ -107,24 +107,24 @@ extern void splay_tree_foreach (splay_tree, splay_tree_callback, void *); #else /* splay_tree_c */ # ifdef splay_tree_prefix # include "splay-tree.c" -# undef splay_tree_name_1 -# undef splay_tree_name -# undef splay_tree_node_s -# undef splay_tree_s -# undef splay_tree_key_s -# undef splay_tree_node -# undef splay_tree -# undef splay_tree_key -# undef splay_compare -# undef splay_tree_lookup -# undef splay_tree_insert -# undef splay_tree_remove -# undef splay_tree_foreach -# undef splay_tree_callback -# undef splay_tree_c # endif +# undef splay_tree_c #endif /* #ifndef splay_tree_c */ #ifdef splay_tree_prefix +# undef splay_tree_name_1 +# undef splay_tree_name +# undef splay_tree_node_s +# undef splay_tree_s +# undef splay_tree_key_s +# undef splay_tree_node +# undef splay_tree +# undef splay_tree_key +# undef splay_compare +# undef splay_tree_lookup +# undef splay_tree_insert +# undef splay_tree_remove +# undef splay_tree_foreach +# undef splay_tree_callback # undef splay_tree_prefix #endif |