From cfbf904b90ff9e8c15c56eda201227cd2858a68a Mon Sep 17 00:00:00 2001 From: MBaesken Date: Fri, 4 Oct 2024 11:30:46 +0200 Subject: [PATCH] move ub.h to a better location --- .../share/native/{include/sanitizers => libjava}/ub.h | 4 ++-- src/java.desktop/share/native/libawt/java2d/loops/IntRgb.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename src/java.base/share/native/{include/sanitizers => libjava}/ub.h (96%) diff --git a/src/java.base/share/native/include/sanitizers/ub.h b/src/java.base/share/native/libjava/ub.h similarity index 96% rename from src/java.base/share/native/include/sanitizers/ub.h rename to src/java.base/share/native/libjava/ub.h index 52043df260884..cf7f491ca453e 100644 --- a/src/java.base/share/native/include/sanitizers/ub.h +++ b/src/java.base/share/native/libjava/ub.h @@ -23,8 +23,8 @@ * */ -#ifndef _SANITIZERS_UB_H_ -#define _SANITIZERS_UB_H_ +#ifndef _UB_H_ +#define _UB_H_ /* ATTRIBUTE_NO_UBSAN - Function attribute which informs the compiler to disable UBSan checks in the * following function or method. diff --git a/src/java.desktop/share/native/libawt/java2d/loops/IntRgb.c b/src/java.desktop/share/native/libawt/java2d/loops/IntRgb.c index 117a2746edcff..aec11d17c890b 100644 --- a/src/java.desktop/share/native/libawt/java2d/loops/IntRgb.c +++ b/src/java.desktop/share/native/libawt/java2d/loops/IntRgb.c @@ -34,7 +34,7 @@ #include "ByteGray.h" #include "Index12Gray.h" -#include "sanitizers/ub.h" +#include "ub.h" /* * This file declares, registers, and defines the various graphics