[PATCH 0/1] Add missing math.h includes

Nicholas Vinson nvinson234 at gmail.com
Tue May 21 00:10:08 CEST 2024


Issue #833 reported xfce4-panel failed to build due to undefined symbols. The
undefined symbols were match functions that are typically declared in math.h.

Commit 0f786ce451297f8d26d41dc8492c10db08d8f87f added a math.h include statement
to libxfce4panel/xfce-panel-image.c. After the addition, the issue was marked
resolved.

However when attempting to compile xfce4-panel-4.19.4 with clang-18.1.6, issue
#833 reappeared as several more files needed the math.h include statement. The
master branch also failed to build with clang-18.1.6 with the same errors.

This patch adds the necessary include statements to get clang-18.1.6 to build
xfce4-panel.

Nicholas Vinson (1):
  build: Add missing math.h includes

 panel/panel-base-window.c        | 4 +++-
 panel/panel-itembar.c            | 4 ++++
 panel/panel-preferences-dialog.c | 4 +++-
 plugins/clock/clock-analog.c     | 4 ++++
 plugins/clock/clock-binary.c     | 4 +++-
 plugins/clock/clock-lcd.c        | 4 ++++
 plugins/clock/clock.c            | 4 ++++
 plugins/systray/systray-box.c    | 4 ++++
 8 files changed, 29 insertions(+), 3 deletions(-)

-- 
2.45.1



More information about the Xfce4-dev mailing list