Make #includes in llcommon header files more complete.
These includes are needed. The current code includes them in .cpp files *before* including these include files, but that is not very clean, and not useful. Actually including what a header file needs makes it more clear what it drags in, it doesn't drag in more then before. It also allows to include these headers without having to includes needed for the included header file in a specific order, in every .cpp file.
This commit is contained in:
@@ -30,6 +30,9 @@
|
||||
#ifndef LL_LLFILE_H
|
||||
#define LL_LLFILE_H
|
||||
|
||||
#include <fstream>
|
||||
#include <sys/stat.h>
|
||||
|
||||
/**
|
||||
* This class provides a cross platform interface to the filesystem.
|
||||
* Attempts to mostly mirror the POSIX style IO functions.
|
||||
@@ -37,9 +40,6 @@
|
||||
|
||||
typedef FILE LLFILE;
|
||||
|
||||
#include <fstream>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#if LL_WINDOWS
|
||||
// windows version of stat function and stat data structure are called _stat
|
||||
typedef struct _stat llstat;
|
||||
|
||||
@@ -32,6 +32,10 @@
|
||||
#ifndef LL_LLMD5_H
|
||||
#define LL_LLMD5_H
|
||||
|
||||
#include "llpreprocessor.h"
|
||||
#include <iosfwd>
|
||||
#include <cstring> // memcmp
|
||||
|
||||
// LLMD5.CC - source code for the C++/object oriented translation and
|
||||
// modification of MD5.
|
||||
|
||||
|
||||
@@ -27,6 +27,9 @@
|
||||
#define LLREFCOUNT_H
|
||||
|
||||
#include <boost/noncopyable.hpp>
|
||||
#include "llpreprocessor.h" // LL_COMMON_API
|
||||
#include "stdtypes.h" // S32
|
||||
#include "llerror.h" // llassert
|
||||
|
||||
#define LL_REF_COUNT_DEBUG 0
|
||||
#if LL_REF_COUNT_DEBUG
|
||||
|
||||
@@ -37,6 +37,8 @@
|
||||
|
||||
#include <vector>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include "llpreprocessor.h"
|
||||
#include "stdtypes.h"
|
||||
|
||||
class LLRunnable;
|
||||
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
|
||||
#include "llerror.h" // *TODO: eliminate this
|
||||
|
||||
#include <map>
|
||||
#include <typeinfo>
|
||||
#include <boost/noncopyable.hpp>
|
||||
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
|
||||
#include <iostream>
|
||||
#include <set>
|
||||
#include <vector>
|
||||
#include "stdtypes.h"
|
||||
#include "llpreprocessor.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user