diff options
| author | brad kittenbrink <brad@lindenlab.com> | 2009-12-14 11:07:29 -0800 | 
|---|---|---|
| committer | brad kittenbrink <brad@lindenlab.com> | 2009-12-14 11:07:29 -0800 | 
| commit | cb9b874b17aa4b284a622961e1e09ef42d8cd284 (patch) | |
| tree | 8f88ba469b3016ccec982d881040a06325b762a5 /indra/llcommon | |
| parent | a9e409c7071ba74f01158aa7b876a1ad60161fc4 (diff) | |
| parent | 7c69928ff8892f0cb4a3a6ad155106ebef7e1f8a (diff) | |
Merge of my old precompiled headers dependency cleanup with tip of viewer-2-0.
Diffstat (limited to 'indra/llcommon')
| -rw-r--r-- | indra/llcommon/llapp.h | 6 | ||||
| -rw-r--r-- | indra/llcommon/llapr.h | 8 | ||||
| -rw-r--r-- | indra/llcommon/llcommon.h | 1 | ||||
| -rw-r--r-- | indra/llcommon/llerror.cpp | 3 | ||||
| -rw-r--r-- | indra/llcommon/llthread.h | 1 | 
5 files changed, 12 insertions, 7 deletions
| diff --git a/indra/llcommon/llapp.h b/indra/llcommon/llapp.h index 1a052ce62d..963ea38249 100644 --- a/indra/llcommon/llapp.h +++ b/indra/llcommon/llapp.h @@ -34,14 +34,16 @@  #define LL_LLAPP_H  #include <map> -#include "llapr.h"  #include "llrun.h"  #include "llsd.h"  #include "lloptioninterface.h"  // Forward declarations +template <typename Type> class LLAtomic32; +typedef LLAtomic32<U32> LLAtomicU32;  class LLErrorThread;  class LLLiveFile; +typedef struct siginfo siginfo_t;  typedef void (*LLAppErrorHandler)();  typedef void (*LLAppChildCallback)(int pid, bool exited, int status); @@ -202,8 +204,6 @@ public:  #if !LL_WINDOWS  	static U32  getSigChildCount();  	static void incSigChildCount(); -#else -#define getpid GetCurrentProcessId  #endif  	static int getPid(); diff --git a/indra/llcommon/llapr.h b/indra/llcommon/llapr.h index b08bb617c5..b05a222b33 100644 --- a/indra/llcommon/llapr.h +++ b/indra/llcommon/llapr.h @@ -38,6 +38,14 @@  #if LL_LINUX || LL_SOLARIS  #include <sys/param.h>  // Need PATH_MAX in APR headers...  #endif +#if LL_WINDOWS +	// Limit Windows API to small and manageable set. +	// If you get undefined symbols, find the appropriate +	// Windows header file and include that in your .cpp file. +	#define WIN32_LEAN_AND_MEAN +	#include <winsock2.h> +	#include <windows.h> +#endif  #include <boost/noncopyable.hpp> diff --git a/indra/llcommon/llcommon.h b/indra/llcommon/llcommon.h index b36471f9f8..05eef25b21 100644 --- a/indra/llcommon/llcommon.h +++ b/indra/llcommon/llcommon.h @@ -33,7 +33,6 @@  #define LL_COMMON_H  // *TODO: remove these? -#include "llapr.h"  #include "lltimer.h"  #include "llfile.h" diff --git a/indra/llcommon/llerror.cpp b/indra/llcommon/llerror.cpp index 77c0c2294a..bd334a6654 100644 --- a/indra/llcommon/llerror.cpp +++ b/indra/llcommon/llerror.cpp @@ -45,9 +45,6 @@  # include <syslog.h>  # include <unistd.h>  #endif // !LL_WINDOWS -#if LL_WINDOWS -# include <windows.h> -#endif // LL_WINDOWS  #include <vector>  #include "llapp.h" diff --git a/indra/llcommon/llthread.h b/indra/llcommon/llthread.h index d8aa90de2e..adef1a9192 100644 --- a/indra/llcommon/llthread.h +++ b/indra/llcommon/llthread.h @@ -34,6 +34,7 @@  #define LL_LLTHREAD_H  #include "llapp.h" +#include "llapr.h"  #include "apr_thread_cond.h"  class LLThread; | 
