Michael Orlitzky on Tue, 01 Aug 2023 16:52:42 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PATCH 1/2] config/has_fltk.c: rename to config/has_fltk.cxx


This is a "C++ file" because it includes FLTK C++ headers and a "main"
function whose parameter list is empty. To avoid confusion we change
its extension to something unambiguously C++. The preferred extension
is the subject of a religious war; in this case, I've chosen to adopt
the "cxx" extension that FLTK itself uses.
---
 config/get_fltk                     | 2 +-
 config/{has_fltk.c => has_fltk.cxx} | 0
 2 files changed, 1 insertion(+), 1 deletion(-)
 rename config/{has_fltk.c => has_fltk.cxx} (100%)

diff --git a/config/get_fltk b/config/get_fltk
index 87d0c1dd8..94259ba41 100644
--- a/config/get_fltk
+++ b/config/get_fltk
@@ -8,7 +8,7 @@ cmd="FLTK_LIBS=\`fltk-config --ldflags\`"
 exe=$osname-$arch-fltk$$$exe_suff
 cxx=$CXX
 if test -z "$cxx"; then cxx=g++; fi;
-cmd="$cxx $CFLAGS $FLTK_LIBS -o $exe has_fltk.c"
+cmd="$cxx $CFLAGS $FLTK_LIBS -o $exe has_fltk.cxx"
 . log_cmd
 if test -r "$exe"; then
   echo "Using FLTK library"
diff --git a/config/has_fltk.c b/config/has_fltk.cxx
similarity index 100%
rename from config/has_fltk.c
rename to config/has_fltk.cxx
-- 
2.39.3