X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=ETL%2Ftrunk%2FETL%2Fhandle;h=60f262307ea4d2fce3de240ed6a7c9bddaf02318;hb=ebab46356c26b8f2b2849bfaeb0f0a3a8000b6c6;hp=3e343fd97f544cdef2e421322b0a488fee255be3;hpb=29bc5853be7221a692fe89d9f0ddbd1de7f50299;p=synfig.git diff --git a/ETL/trunk/ETL/handle b/ETL/trunk/ETL/handle index 3e343fd..60f2623 100644 --- a/ETL/trunk/ETL/handle +++ b/ETL/trunk/ETL/handle @@ -1,11 +1,12 @@ // -*- C++ -*- /* === E T L =============================================================== */ /*! \file handle -** $Id: handle,v 1.1.1.1 2005/01/04 01:31:46 darco Exp $ +** $Id$ ** \brief Template Object Handle ** ** \legal ** Copyright (c) 2002 Robert B. Quattlebaum Jr. +** Copyright (c) 2008 Chris Moore ** ** This package is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License as @@ -29,6 +30,18 @@ #include "etl_config.h" +// include the next line in an attempt to increase stability +// it seems to make things much *less* stable on MS Windows +#ifndef _WIN32 +#ifdef HAVE_LIBPTHREAD +#define ETL_LOCK_REFCOUNTS +#endif +#endif + +#ifdef ETL_LOCK_REFCOUNTS +# include "mutex" +#endif + #include "_handle.h" /* === E N D =============================================================== */