[gcc/devel/omp/gcc-16] libgomp: '#include "libgomp.h"' in 'libgomp/target-indirect.c'

Sandra Loosemore via Gcc-cvs <[email protected]>
Newsgroups gmane.comp.gcc.cvs
Message-ID <[email protected]>
https://gcc.gnu.org/g:e5d0965d410e260aad9ab5ffa6b605ffe6b40e8d

commit e5d0965d410e260aad9ab5ffa6b605ffe6b40e8d
Author: Thomas Schwinge <[email protected]>
Date:   Mon May 11 21:42:11 2026 +0200

    libgomp: '#include "libgomp.h"' in 'libgomp/target-indirect.c'
    
    ..., as libgomp implementation files generally do.  This gets us
    '#include "libgomp_g.h"', which contains the prototype for
    'GOMP_target_map_indirect_ptr'.  Minor fix-up for
    commit a49c7d3193bb0fd5589e12e725f5a130725ae171
    "openmp: Add support for the 'indirect' clause in C/C++".
    
            libgomp/
            * target-indirect.c: '#include "libgomp.h"'.
    
    (cherry picked from commit 449f25fe368480c358203973d653663c9bded556)

Diff:
---
 libgomp/target-indirect.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libgomp/target-indirect.c b/libgomp/target-indirect.c
index 331fd963f61f..d5af9e32427b 100644
--- a/libgomp/target-indirect.c
+++ b/libgomp/target-indirect.c
@@ -24,6 +24,8 @@
    see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include "libgomp.h"
+
 void *
 GOMP_target_map_indirect_ptr (void *ptr)
 {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.