X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/afd9aaf3f1751dde9ddb55dcdf3782a6aaeb4e97..a44aeb52f0476ed56feff82b1cfd2fa84e7a1223:/apt-pkg/contrib/error.cc diff --git a/apt-pkg/contrib/error.cc b/apt-pkg/contrib/error.cc index 8db8bcc3c..8c2d6cb19 100644 --- a/apt-pkg/contrib/error.cc +++ b/apt-pkg/contrib/error.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: error.cc,v 1.7 1999/08/05 05:55:45 jgg Exp $ +// $Id: error.cc,v 1.11 2002/03/26 07:38:58 jgg Exp $ /* ###################################################################### Global Erorr Class - Global error mechanism @@ -14,29 +14,27 @@ ##################################################################### */ /*}}}*/ // Include Files /*{{{*/ -#ifdef __GNUG__ -#pragma implementation "apt-pkg/error.h" -#endif - #include +#include #include #include -#include +#include #include #include #include "config.h" /*}}}*/ +using namespace std; + // Global Error Object /*{{{*/ /* If the implementation supports posix threads then the accessor function is compiled to be thread safe otherwise a non-safe version is used. A Per-Thread error object is maintained in much the same manner as libc manages errno */ -#if _POSIX_THREADS == 1 && defined(HAVE_PTHREAD) +#if defined(_POSIX_THREADS) && defined(HAVE_PTHREAD) #include - #error PTHREAD static pthread_key_t ErrorKey; static void ErrorDestroy(void *Obj) {delete (GlobalError *)Obj;};