--- a/doc/doxygen.cfg
+++ b/doc/doxygen.cfg
@@ -1635,6 +1635,7 @@ PREDEFINED             = STARPU_USE_OPEN
 			 STARPU_HAVE_GLPK_H=1 \
 			 STARPU_USE_MPI_MASTER_SLAVE=1 \
 			 STARPU_BUBBLE=1 \
+			 __HIP_PLATFORM_AMD__=1 \
                          __GCC__
 
 # If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then
commit df43674da322ad897a8017fa8dd6fcf7d908f048
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Wed Dec 3 18:53:09 2025 +0100

    Also fix errors while building doxygen doc with hip support for starpufft.h

--- a/doc/doxygen/doxygen_filter.sh.in
+++ b/doc/doxygen/doxygen_filter.sh.in
@@ -15,7 +15,7 @@
 # See the GNU Lesser General Public License in COPYING.LGPL for more details.
 #
 if [ "$(basename $1)" == "starpufft.h" ] ; then
-    gcc -E $1 -I @top_srcdir@/include/ -I @top_builddir@/include/ |grep -i starpufft
+    gcc -D__HIP_PLATFORM_AMD__ -E $1 -I @top_srcdir@/include/ -I @top_builddir@/include/ |grep -i starpufft
 else
     # the macro STARPU_DEPRECATED needs to be removed as it is not properly processed by doxygen
     # lines starting with // in the doxygen input files are considered as comments to be removed
