From 2addcf2e76bf0e4d4be992d4db0c8276875d3689 Mon Sep 17 00:00:00 2001 From: curt Date: Fri, 24 Apr 1998 00:52:24 +0000 Subject: [PATCH] Wrapped "#include " in "#ifdef HAVE_CONFIG_H" Fog color fixes. Separated out lighting calcs into their own file. --- Time/Makefile.am | 6 +- Time/Makefile.in | 10 +- Time/{event.c => event.cxx} | 20 +- Time/{event.h => event.hxx} | 34 +- Time/fg_time.c | 513 ----------------------------- Time/fg_time.cxx | 525 ++++++++++++++++++++++++++++++ Time/fg_time.h | 180 ---------- Time/fg_time.hxx | 194 +++++++++++ Time/{fg_timer.c => fg_timer.cxx} | 33 +- Time/{fg_timer.h => fg_timer.hxx} | 34 +- Time/light.cxx | 24 +- Time/light.hxx | 9 +- Time/sunpos.cxx | 60 +--- 13 files changed, 832 insertions(+), 810 deletions(-) rename Time/{event.c => event.cxx} (95%) rename Time/{event.h => event.hxx} (76%) delete mode 100644 Time/fg_time.c create mode 100644 Time/fg_time.cxx delete mode 100644 Time/fg_time.h create mode 100644 Time/fg_time.hxx rename Time/{fg_timer.c => fg_timer.cxx} (85%) rename Time/{fg_timer.h => fg_timer.hxx} (74%) diff --git a/Time/Makefile.am b/Time/Makefile.am index 11a9e2976..f2916865a 100644 --- a/Time/Makefile.am +++ b/Time/Makefile.am @@ -3,9 +3,9 @@ libdir = ${exec_prefix}/lib lib_LTLIBRARIES = libTime.la libTime_la_SOURCES = \ - event.c event.h \ - fg_time.c fg_time.h \ - fg_timer.c fg_timer.h \ + event.cxx event.hxx \ + fg_time.cxx fg_time.hxx \ + fg_timer.cxx fg_timer.hxx \ light.cxx light.hxx \ sunpos.cxx sunpos.hxx diff --git a/Time/Makefile.in b/Time/Makefile.in index 1ae8bef1d..26d1350e8 100644 --- a/Time/Makefile.in +++ b/Time/Makefile.in @@ -75,9 +75,9 @@ libdir = ${exec_prefix}/lib lib_LTLIBRARIES = libTime.la libTime_la_SOURCES = \ - event.c event.h \ - fg_time.c fg_time.h \ - fg_timer.c fg_timer.h \ + event.cxx event.hxx \ + fg_time.cxx fg_time.hxx \ + fg_timer.cxx fg_timer.hxx \ light.cxx light.hxx \ sunpos.cxx sunpos.hxx mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs @@ -101,10 +101,6 @@ CXXFLAGS = @CXXFLAGS@ CXXCOMPILE = $(CXX) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CXXFLAGS) CXXLINK = $(LIBTOOL) --mode=link $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ -CFLAGS = @CFLAGS@ -COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) -LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@ DIST_COMMON = Makefile.am Makefile.in diff --git a/Time/event.c b/Time/event.cxx similarity index 95% rename from Time/event.c rename to Time/event.cxx index 75febe3dc..823363483 100644 --- a/Time/event.c +++ b/Time/event.cxx @@ -24,7 +24,9 @@ **************************************************************************/ -#include +#ifdef HAVE_CONFIG_H +# include +#endif #include #include @@ -39,10 +41,11 @@ /* contains milliseconds */ #endif -#include "fg_time.h" - #include -#include