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:
Aleric Inglewood
2013-11-01 01:14:30 +01:00
parent 54b43f1ad7
commit b424d0232b
6 changed files with 14 additions and 3 deletions

View File

@@ -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;

View File

@@ -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.

View File

@@ -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

View File

@@ -37,6 +37,8 @@
#include <vector>
#include <boost/shared_ptr.hpp>
#include "llpreprocessor.h"
#include "stdtypes.h"
class LLRunnable;

View File

@@ -27,6 +27,7 @@
#include "llerror.h" // *TODO: eliminate this
#include <map>
#include <typeinfo>
#include <boost/noncopyable.hpp>

View File

@@ -28,6 +28,7 @@
#include <iostream>
#include <set>
#include <vector>
#include "stdtypes.h"
#include "llpreprocessor.h"