From f91d96b51af697a36a3ddbc55257b0954bd3b202 Mon Sep 17 00:00:00 2001 From: mfranz Date: Tue, 12 May 2009 15:56:30 +0000 Subject: [PATCH] - fix one broken #include path (in a not usually compiled test app) - turn four #include paths from the "foo" form to The quotes form is normally only used for headers with path relative to the including file's path, though the standard doesn't strictly mandate this. This is consistent with the rest of sg, it makes the code's intent clearer and helps to find headers. (And it's a few milliseconds faster, too.) --- simgear/debug/logtest.cxx | 2 +- simgear/math/interpolater.hxx | 2 +- simgear/misc/tabbed_values.cxx | 2 +- simgear/threads/SGThread.cxx | 2 +- simgear/xml/xmldef.h | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/simgear/debug/logtest.cxx b/simgear/debug/logtest.cxx index afa5ddcc..07a6501a 100644 --- a/simgear/debug/logtest.cxx +++ b/simgear/debug/logtest.cxx @@ -1,5 +1,5 @@ #include -#include "Debug/logstream.hxx" +#include class Test { diff --git a/simgear/math/interpolater.hxx b/simgear/math/interpolater.hxx index 0df566a9..393e39ff 100644 --- a/simgear/math/interpolater.hxx +++ b/simgear/math/interpolater.hxx @@ -35,7 +35,7 @@ #include -#include "simgear/structure/SGReferenced.hxx" +#include #include diff --git a/simgear/misc/tabbed_values.cxx b/simgear/misc/tabbed_values.cxx index dc4d34bc..07ed2063 100644 --- a/simgear/misc/tabbed_values.cxx +++ b/simgear/misc/tabbed_values.cxx @@ -21,10 +21,10 @@ // $Id$ #include +#include #include "tabbed_values.hxx" -#include "assert.h" SGTabbedValues::SGTabbedValues(const char *line) : _line(line) diff --git a/simgear/threads/SGThread.cxx b/simgear/threads/SGThread.cxx index d786c24a..c7a841b0 100644 --- a/simgear/threads/SGThread.cxx +++ b/simgear/threads/SGThread.cxx @@ -11,7 +11,7 @@ # include #endif #if _MSC_VER >= 1300 -# include "winsock2.h" +# include #endif #include "SGThread.hxx" diff --git a/simgear/xml/xmldef.h b/simgear/xml/xmldef.h index 49ce9ed6..81de339b 100644 --- a/simgear/xml/xmldef.h +++ b/simgear/xml/xmldef.h @@ -53,7 +53,7 @@ particular environments. */ #ifdef MOZILLA -#include "nspr.h" +#include #define malloc(x) PR_Malloc(x) #define realloc(x, y) PR_Realloc((x), (y)) #define calloc(x, y) PR_Calloc((x),(y)) -- 2.39.5