From: curt Date: Fri, 24 Apr 1998 00:52:24 +0000 (+0000) Subject: Wrapped "#include " in "#ifdef HAVE_CONFIG_H" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2addcf2e76bf0e4d4be992d4db0c8276875d3689;p=flightgear.git Wrapped "#include " in "#ifdef HAVE_CONFIG_H" Fog color fixes. Separated out lighting calcs into their own file. --- 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.c deleted file mode 100644 index 75febe3dc..000000000 --- a/Time/event.c +++ /dev/null @@ -1,352 +0,0 @@ -/************************************************************************** - * event.c -- Flight Gear periodic event scheduler - * - * Written by Curtis Olson, started December 1997. - * - * Copyright (C) 1997 Curtis L. Olson - curt@infoplane.com - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - * $Id$ - * (Log is kept at end of this file) - **************************************************************************/ - - -#include - -#include -#include - -#ifdef HAVE_STDLIB_H -#include -#endif - -#if defined( HAVE_WINDOWS_H ) && defined(__MWERKS__) -# include /* For Metrowerks environment */ -# include /* There is no ANSI/MSL time function that */ - /* contains milliseconds */ -#endif - -#include "fg_time.h" - -#include -#include